From cba864aaad9455ce7d4d4380e712be4c555e5e04 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Tue, 15 Jul 2014 11:51:45 -0400 Subject: install-lilo: Drop part num when detecting boot --- diff --git a/install-lilo.sh b/install-lilo.sh index 97aab0b..987b7a5 100644 --- a/install-lilo.sh +++ b/install-lilo.sh @@ -14,6 +14,7 @@ main() 'please specify the boot and root devices' fi boot="$(mountpoint -n /boot | cut -d ' ' -f 1)" + boot="${boot%%[0-9]}" root="$(mountpoint -n / | cut -d ' ' -f 1)" elif [ ${#} -eq 2 ]; then boot="${1}" -- cgit v0.9.1