diff options
author | maximilian attems <maks@debian.org> | 2006-10-18 13:16:03 +0200 |
---|---|---|
committer | maximilian attems <maks@debian.org> | 2006-10-18 13:16:03 +0200 |
commit | dc67493c8b72ebb4a360194a13c74a13d06def52 (patch) | |
tree | 8bdbde7e898899789d9ecb54c511cb0de577c13d /update-initramfs | |
parent | 63f337b6a8cfa058bb2ed9fcf0de6a71f3ffb9ab (diff) | |
download | initramfs-tools-dc67493c8b72ebb4a360194a13c74a13d06def52.tar.gz initramfs-tools-dc67493c8b72ebb4a360194a13c74a13d06def52.zip |
- improve run_bootloader (elilo, zipl)
- fix preinst sed command
- bunch of minor fixes
Diffstat (limited to 'update-initramfs')
-rwxr-xr-x | update-initramfs | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/update-initramfs b/update-initramfs index 151e47a..c112211 100755 --- a/update-initramfs +++ b/update-initramfs @@ -148,10 +148,11 @@ mbr_check() echo } -# only run lilo if no grub is around -# or if "do_bootloader = yes" is set +# Invoke bootloader run_bootloader() { + # only run lilo if no grub is around + # or if "do_bootloader = yes" is set if [ -x /sbin/grub ] || [ -e /boot/grub/menu.lst ] \ || [ -x /usr/sbin/grub ]; then if [ -e /etc/lilo.conf ] && [ -x /sbin/lilo ]; then @@ -168,8 +169,16 @@ run_bootloader() fi return 0 fi - if [ -e /etc/lilo.conf ] && [ -x /sbin/lilo ]; then + if [ -r /etc/lilo.conf ] && [ -x /sbin/lilo ]; then run_lilo + return 0 + fi + if [ -x /sbin/elilo ]; then + elilo + return 0 + fi + if [ -r /etc/zipl.conf ]; then + zipl fi } |