Package: initramfs-tools Version: 0.83 Severity: normal Tags: patch Hi,
update-initramfs exits with status 1 from function mbr_check() if the boot record doesn't contain the string "LILO". Indeed grep returns status 1 and the script runs with "set -e". The small patch attached below solved the problem for me (using grub, but lilo still installed and lilo.conf no longer current). Thanks -- Package-specific info: -- /proc/cmdline root=/dev/hda10 ro vga=0x317 -- /proc/filesystems ext3 ext2 cramfs vfat -- lsmod Module Size Used by ipv6 212544 12 nls_iso8859_15 4608 5 nls_cp850 4864 5 vfat 11200 5 fat 44956 1 vfat dm_snapshot 14268 0 dm_mirror 16784 0 dm_mod 47544 2 dm_snapshot,dm_mirror snd_sbawe 32512 0 snd_opl3_lib 9312 1 snd_sbawe snd_sb16_dsp 8896 1 snd_sbawe snd_sb16_csp 17504 1 snd_sbawe snd_sb_common 15232 3 snd_sbawe,snd_sb16_dsp,snd_sb16_csp snd_hwdep 8580 2 snd_opl3_lib,snd_sb16_csp snd_mpu401_uart 7232 1 snd_sbawe snd_rawmidi 21728 1 snd_mpu401_uart snd_seq_device 7596 3 snd_sbawe,snd_opl3_lib,snd_rawmidi snd_pcm_oss 37760 0 snd_mixer_oss 14944 1 snd_pcm_oss snd_pcm 65608 3 snd_sbawe,snd_sb16_dsp,snd_pcm_oss snd_timer 19620 2 snd_opl3_lib,snd_pcm snd 45156 13 snd_sbawe,snd_opl3_lib,snd_sb16_dsp,snd_sb16_csp,snd_sb_common,snd_hwdep,snd_mpu401_uart,snd_rawmidi,snd_seq_device,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_timer soundcore 8704 1 snd snd_page_alloc 9416 1 snd_pcm mousedev 10304 1 tsdev 7296 0 evdev 8800 0 parport_pc 31268 0 parport 33928 1 parport_pc rtc 11220 0 8250_pnp 8608 0 ns558 4608 0 gameport 13480 2 ns558 floppy 50500 0 psmouse 34312 0 serio_raw 6212 0 pcspkr 2560 0 ide_cd 34944 0 cdrom 32192 1 ide_cd ide_disk 14272 12 piix 8964 0 [permanent] 8139too 23808 0 mii 5056 1 8139too generic 4804 0 [permanent] ide_core 105668 4 ide_cd,ide_disk,piix,generic ohci_hcd 17316 0 ehci_hcd 26632 0 usbcore 109092 3 ohci_hcd,ehci_hcd -- kernel-img.conf # Do not create symbolic links in / do_symlinks = Yes postinst_hook = /sbin/update-grub postrm_hook = /sbin/update-grub do_bootloader = no do_initrd = Yes -- System Information: Debian Release: testing/unstable APT prefers testing APT policy: (100, 'testing'), (10, 'stable'), (1, 'experimental') Architecture: i386 (i486) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.18 Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15) Versions of packages initramfs-tools depends on: ii busybox 1:1.1.3-3 Tiny utilities for small and embed ii cpio 2.6-17 GNU cpio -- a program to manage ar ii klibc-utils 1.4.27-1 small statically-linked utilities ii module-init-tools 3.2.2-3 tools for managing Linux kernel mo ii udev 0.100-2 /dev/ and hotplug management daemo initramfs-tools recommends no packages. -- no debconf information
--- update-initramfs-0.83 2006-10-13 09:37:34.000000000 +0200 +++ update-initramfs 2006-10-21 22:39:01.000000000 +0200 @@ -139,8 +139,7 @@ boot=$(awk -F = '/^boot=/{ print $2}' /etc/lilo.conf) [ -z "${boot}" ] && return 0 [ ! -r "${boot}" ] && return 0 - dd if="${boot}" bs=512 skip=0 count=1 2> /dev/null | grep -q LILO - [ $? -eq 0 ] && run_lilo && return 0 + dd if="${boot}" bs=512 skip=0 count=1 2> /dev/null | grep -q LILO && run_lilo && return 0 echo echo "WARNING: grub and lilo installed." echo "If you use grub as bootloader everything is fine."