[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#394559: marked as done (initramfs-tools: postinst script exit status 1, testing for LILO in update-initramfs)



Your message dated Tue, 31 Oct 2006 07:19:44 -0800
with message-id <E1GevOy-00006b-D4@spohr.debian.org>
and subject line Bug#394559: fixed in initramfs-tools 0.85
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
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: LANG=fr_FR@euro, LC_CTYPE=fr_FR@euro (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."

--- End Message ---
--- Begin Message ---
Source: initramfs-tools
Source-Version: 0.85

We believe that the bug you reported is fixed in the latest version of
initramfs-tools, which is due to be installed in the Debian FTP archive:

initramfs-tools_0.85.dsc
  to pool/main/i/initramfs-tools/initramfs-tools_0.85.dsc
initramfs-tools_0.85.tar.gz
  to pool/main/i/initramfs-tools/initramfs-tools_0.85.tar.gz
initramfs-tools_0.85_all.deb
  to pool/main/i/initramfs-tools/initramfs-tools_0.85_all.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 394559@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
maximilian attems <maks@sternwelten.at> (supplier of updated initramfs-tools package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Mon, 30 Oct 2006 10:12:58 +0100
Source: initramfs-tools
Binary: initramfs-tools
Architecture: source all
Version: 0.85
Distribution: unstable
Urgency: high
Maintainer: Debian kernel team <debian-kernel@lists.debian.org>
Changed-By: maximilian attems <maks@sternwelten.at>
Description: 
 initramfs-tools - tools for generating an initramfs
Closes: 393890 393906 394559 395907
Changes: 
 initramfs-tools (0.85) unstable; urgency=high
 .
   Release "Nichts ist getan, wenn noch etwas zu tun übrig ist."
 .
   * update-initramfs: Fix ro /boot check to not trigger on other mounts
     having a /boot string. (closes: 393906) Thanks for the patch
     Olli Helenius <olli@starnet.fi>
 .
   * init-top/framebuffer: Fix duplicate fbno0 device creation. Merge the
     0.69ubuntu10 solution. Thanks Benjamin Leipold <rabbit171@web.de>
     for the report. (closes: 393890)
 .
   * update-initramfs: Fix mbr_check() for installed lilo and used grub. Thanks
     for the patch by Michel Casabona <michel.casabona@free.fr>. Also be
     stricter about do_bootloader match, use negative info and add check for
     grub on mbr before throwing error. (closes: 394559) urgency high.
 .
   * hook-functions: Add sata_sil24 to scsi modules. (closes: 395907)
     Thanks Vadim S. Solomi" <vadic@vadic.nnov.ru> for the patch.
 .
   * update-initramfs: Fix lilo detection in mbr_check() for rootraid.
     Based on a patch by Michael Prokop <mika@grml.org>. Suppress lilo warning
     messages on test run.
Files: 
 b3ee42c6f0edd6bf8efc031d7122e7d4 623 utils optional initramfs-tools_0.85.dsc
 5d2453349ac6fb4c20ceebc6560b20ff 54416 utils optional initramfs-tools_0.85.tar.gz
 ec9b711f011c15cde0c4c3ee586a072e 61164 utils optional initramfs-tools_0.85_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQFFR2Wu6n7So0GVSSARAkGXAJ4yZkbVX+WCUflDrkWQryHTvEMWfQCfUTkR
LvFmcDKbu6nO10aRDlgIwAI=
=EwLl
-----END PGP SIGNATURE-----


--- End Message ---

Reply to: