summaryrefslogtreecommitdiff
path: root/update-initramfs
diff options
context:
space:
mode:
authormaximilian attems <maks@debian.org>2006-08-17 17:14:01 +0200
committermaximilian attems <maks@debian.org>2006-08-17 17:14:01 +0200
commit839572386f35bf4b4404dac5f976566bc155de94 (patch)
tree3d4c49ba90c9070d8652b579b5039d4d67876c50 /update-initramfs
parenta84613ae7742190e50cc619eee462cc0cd17f6c8 (diff)
downloadinitramfs-tools-839572386f35bf4b4404dac5f976566bc155de94.tar.gz
initramfs-tools-839572386f35bf4b4404dac5f976566bc155de94.zip
Release 0.74:
- scripts/functions: fix debug boot param - update-initramfs: checkout /etc/kernel-img.conf if lilo and grub is installed - rename mdraid to mdrun, readd mdrun as it seems to work much better with sarge systems - add an help message for rescue shell - better package desc
Diffstat (limited to 'update-initramfs')
-rwxr-xr-xupdate-initramfs22
1 files changed, 18 insertions, 4 deletions
diff --git a/update-initramfs b/update-initramfs
index ea74136..e7dc586 100755
--- a/update-initramfs
+++ b/update-initramfs
@@ -81,11 +81,28 @@ generate_initramfs()
fi
}
+# lilo call
+run_lilo()
+{
+ lilo -t > /dev/null
+ if [ $? -eq 0 ]; then
+ lilo
+ fi
+}
+
# only run lilo if no grub is around
+# or if "do_bootloader = yes" is set
run_bootloader()
{
if [ -x /sbin/grub -o -e /boot/grub/menu.lst ]; then
if [ -e /etc/lilo.conf ]; then
+ do_bootloader=$(awk '/bootloader/{print $2}' \
+ /etc/kernel-img.conf)
+ if [ "${do_bootloader}" = "yes" ]; then
+ run_lilo
+ return 0
+ fi
+
echo
echo "WARNING: grub and lilo installed."
echo "If you use grub as bootloader everything is fine."
@@ -95,10 +112,7 @@ run_bootloader()
return 0
fi
if [ -e /etc/lilo.conf ]; then
- lilo -t > /dev/null
- if [ $? -eq 0 ]; then
- lilo
- fi
+ run_lilo
fi
}