summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2014-07-21 19:31:10 (EDT)
committer P. J. McDermott <pj@pehjota.net>2014-07-21 19:31:49 (EDT)
commit56bc438102277b3814e7acc72195ea7384b79d1e (patch)
treed70c42aab5ac125e8e5ca58742131ec152dbc81a
parentb2b4f8795ae93c7fc97e9b2a9b03aa9f6423e186 (diff)
installers/pc: Install boot loader
-rw-r--r--installers/data/pc.sh12
1 files changed, 12 insertions, 0 deletions
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'