summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2014-07-15 11:51:45 (EDT)
committer P. J. McDermott <pj@pehjota.net>2014-07-15 11:51:45 (EDT)
commitcba864aaad9455ce7d4d4380e712be4c555e5e04 (patch)
tree4250df491adfff6ec4c59186b43fbe4fc208a886
parent38549b307fc0901801615d5046526e4438fc681c (diff)
install-lilo: Drop part num when detecting boot
-rw-r--r--install-lilo.sh1
1 files changed, 1 insertions, 0 deletions
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}"