summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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}"