diff options
author | P. J. McDermott <pj@pehjota.net> | 2014-11-11 20:09:58 (EST) |
---|---|---|
committer | P. J. McDermott <pj@pehjota.net> | 2014-11-11 20:09:58 (EST) |
commit | 1b26a0ec194c1859d321123f7a7f7636245dbec6 (patch) | |
tree | b469ca4e99f628b7bff6eeee3f19024f1f1fe7a1 | |
parent | f24225c67aa6bd4c19f0e0764d616f45ad551276 (diff) |
installers/pc: Install lilo
-rwxr-xr-x | installers/pc.sh | 12 |
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}" } |