summaryrefslogtreecommitdiffstats
path: root/install-lilo.sh
diff options
context:
space:
mode:
Diffstat (limited to 'install-lilo.sh')
-rw-r--r--install-lilo.sh5
1 files changed, 1 insertions, 4 deletions
diff --git a/install-lilo.sh b/install-lilo.sh
index 6ec8555..6beae2c 100644
--- a/install-lilo.sh
+++ b/install-lilo.sh
@@ -28,11 +28,8 @@ main()
sed 's|^\([/a-zA-Z]*\)\([0-9]*\)|\1|')"
rootpart="$(printf '%s\n' "${root}" | \
sed 's|^\([/a-zA-Z]*\)\([0-9]*\)|\2|')"
- read b4 b3 b2 b1 <<-EOF
- $(od -An -tx1 -v -j 440 -N 4 "${rootdev}")
- EOF
root="$(printf 'PARTUUID=%s-%02d\n' \
- "${b1}${b2}${b3}${b4}" ${rootpart})"
+ "$(/usr/libexec/lilo/blkid "${rootdev}")" ${rootpart})"
elif [ ${#} -eq 2 ]; then
boot="${1}"
root="${2}"