From 56bc438102277b3814e7acc72195ea7384b79d1e Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Mon, 21 Jul 2014 19:31:10 -0400 Subject: installers/pc: Install boot loader --- diff --git a/installers/data/pc.sh b/installers/data/pc.sh index 4cd8d09..52d168d 100644 --- a/installers/data/pc.sh +++ b/installers/data/pc.sh @@ -93,4 +93,16 @@ for tzpkg in ${tzpkgs}; do done opkg remove tzcode ${rmtzpkgs} +printf '\nInstall the boot loader' +printf '\n=======================\n\n' + +opkg install lilo +boot="$(mountpoint -n /boot | cut -d ' ' -f 1)" +boot="${boot%%[0-9]}" +printf 'Name of root partition on running system (e.g. "sda1"): ' +_read -r root +# XXX: Temporary kludge. +cp -p /boot/vmlinuz /boot/vmlinuz.old +install-lilo "${boot}" "/dev/${root}" >&2 + printf '\nInstallation complete!\n' -- cgit v0.9.1