From 1b26a0ec194c1859d321123f7a7f7636245dbec6 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Tue, 11 Nov 2014 20:09:58 -0500 Subject: installers/pc: Install lilo --- (limited to 'installers') diff --git a/installers/pc.sh b/installers/pc.sh index 06a91ff..1c89d28 100755 --- a/installers/pc.sh +++ b/installers/pc.sh @@ -21,6 +21,10 @@ main() local host_arch= local host_plat= local mountpoint= + local b4= + local b3= + local b2= + local b1= while getopts 'm:' opt; do case ${opt} in @@ -61,6 +65,14 @@ main() "${0%installers/pc.sh}src/prokit" install \ -a "${host_arch}" -p "${host_plat}" \ ${mirror:+-m} ${mirror} "${mountpoint}" + "${0%installers/pc.sh}src/prokit" opkg install lilo + read b4 b3 b2 b1 <<-EOF + $(od -An -tx1 -v -j 440 -N 4 "/dev/${dev}") + EOF + # This ln command won't be needed once lilo 24.1-1 is uploaded. + ln "${mountpoint}/boot/vmlinuz" "${mountpoint}/boot/vmlinuz.old" + "${0%installers/pc.sh}src/prokit" shell \ + install-lilo "/dev/${dev}" "PARTUUID=${b1}${b2}${b3}${b4}-01" umount_fs "${mountpoint}" } -- cgit v0.9.1