summaryrefslogtreecommitdiffstats
path: root/installers/pc.sh
diff options
context:
space:
mode:
Diffstat (limited to 'installers/pc.sh')
-rwxr-xr-xinstallers/pc.sh12
1 files changed, 12 insertions, 0 deletions
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}"
}