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

Bug#429237: marked as done (MODULES=dep initramfs-tools: Postinst fails on LVM root fs)



Your message dated Thu, 09 Aug 2007 20:47:05 +0000
with message-id <E1IJEuP-0002KK-Ek@ries.debian.org>
and subject line Bug#429237: fixed in initramfs-tools 0.90
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.88
Severity: important

The postinst of this package attempts to regenerate the initramfs, but
fails on my system.

The root filesystem is an XFS filesystem on LVM/dm-crypt. One of the
functions in /usr/share/initramfs-tools/hook-functions attemptes to
determine this, and fails to operate properly. The failing code is:-

# findout root block device + fstype
        eval "$(mount | awk '/ \/ / {print "root=" $1 "\nrootfs=" $5; exit}')"
        block=${root#/dev/}
        block=${block%[0-9]*}

        # Error out if /sys lack block dev
        if [ -z "${block}" ] || [ ! -e /sys/block/${block} ]; then
                echo "Error: missing ${block} root ${root} /sys entry"
                exit 1
        fi

On my system, mount returns the following for the root filesystem:-

/dev/mapper/draupnir-root on / type xfs (rw)

The mkinitramfs operation thus bombs out with:-

Error: missing mapper/draupnir-root root /dev/mapper/draupnir-root /sys entry

This leaves the package in a half installed state, and all subsequent uses of
mkinitramfs also fail for the same reason.

I believe this used to work properly with previous versions of the package.

Mike


-- Package-specific info:
-- /proc/cmdline
root=/dev/mapper/draupnir-root ro acpi_sleep=s3_bios 

-- /proc/filesystems
	ext3
	ext2
	msdos
	vfat
	xfs

-- lsmod
Module                  Size  Used by
hdaps                   9136  0 
ath_pci                89000  0 
button                  7952  0 
psmouse                34824  0 
iptable_filter          3200  0 
ip_tables              11720  1 iptable_filter
x_tables               14596  1 ip_tables
zd1211rw               47492  0 
ieee80211softmac       27776  1 zd1211rw
ieee80211              30792  2 zd1211rw,ieee80211softmac
ieee80211_crypt         6016  1 ieee80211
nls_iso8859_1           4352  0 
nls_cp437               6016  0 
sd_mod                 19984  0 
usb_storage            74688  0 
scsi_mod              133132  2 sd_mod,usb_storage
nfs                   219756  1 
lockd                  57736  2 nfs
nfs_acl                 3584  1 nfs
sunrpc                147388  4 nfs,lockd,nfs_acl
i915                   21376  2 
drm                    73748  3 i915
rfcomm                 35100  0 
l2cap                  22276  5 rfcomm
bluetooth              47844  4 rfcomm,l2cap
thermal                13832  0 
fan                     4868  0 
ac                      5252  0 
battery                 9988  0 
dm_snapshot            16544  0 
dm_mirror              19732  0 
ibm_acpi               30744  0 
speedstep_centrino      7440  1 
freq_table              4484  1 speedstep_centrino
processor              23212  2 thermal,speedstep_centrino
cpufreq_conservative     6432  0 
cpufreq_powersave       2048  1 
nvram                   8328  1 
pcmcia                 35092  0 
firmware_class          9728  2 zd1211rw,pcmcia
wlan_scan_sta          12544  0 
ath_rate_sample        12032  1 
irtty_sir               8192  0 
sir_dev                15236  1 irtty_sir
wlan                  182468  4 ath_pci,wlan_scan_sta,ath_rate_sample
ath_hal               191824  3 ath_pci,ath_rate_sample
e1000                 111552  0 
sdhci                  17420  0 
mmc_core               25492  1 sdhci
nsc_ircc               21776  0 
ehci_hcd               29068  0 
snd_intel8x0           31132  1 
snd_intel8x0m          16780  0 
snd_ac97_codec         87712  2 snd_intel8x0,snd_intel8x0m
ac97_bus                2432  1 snd_ac97_codec
snd_pcm                71176  3 snd_intel8x0,snd_intel8x0m,snd_ac97_codec
snd_timer              20868  1 snd_pcm
snd                    47716  7 snd_intel8x0,snd_intel8x0m,snd_ac97_codec,snd_pcm,snd_timer
soundcore               7904  1 snd
yenta_socket           25100  1 
rsrc_nonstatic         10752  1 yenta_socket
pcmcia_core            37392  3 pcmcia,yenta_socket,rsrc_nonstatic
pcspkr                  3072  0 
serio_raw               6660  0 
rtc                    12848  0 
uhci_hcd               22032  0 
irda                  167228  3 irtty_sir,sir_dev,nsc_ircc
i2c_i801                7564  0 
crc_ccitt               2304  1 irda
snd_page_alloc          9864  3 snd_intel8x0,snd_intel8x0m,snd_pcm
i2c_core               20880  1 i2c_i801
intel_agp              22812  1 
agpgart                30128  3 drm,intel_agp
shpchp                 30868  0 
pci_hotplug            29752  1 shpchp
usbcore               121624  5 zd1211rw,usb_storage,ehci_hcd,uhci_hcd

-- /etc/kernel-img.conf
# Kernel image management overrides
# See kernel-img.conf(5) for details
do_symlinks = yes
relative_links = yes
do_bootloader = yes
do_bootfloppy = no
do_initrd = yes
link_in_boot = no

-- /etc/initramfs-tools/initramfs.conf
MODULES=dep
BUSYBOX=y
KEYMAP=n
BOOT=local
DEVICE=eth0
NFSROOT=auto


-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.20.3 (PREEMPT)
Locale: LANG=en_GB, LC_CTYPE=en_GB (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/bash

Versions of packages initramfs-tools depends on:
ii  busybox                       1:1.1.3-4  Tiny utilities for small and embed
ii  cpio                          2.8-1      GNU cpio -- a program to manage ar
ii  klibc-utils                   1.5-2      small statically-linked utilities 
ii  module-init-tools             3.3-pre4-2 tools for managing Linux kernel mo
ii  udev                          0.105-4    /dev/ and hotplug management daemo

initramfs-tools recommends no packages.

-- no debconf information


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

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.90.dsc
  to pool/main/i/initramfs-tools/initramfs-tools_0.90.dsc
initramfs-tools_0.90.tar.gz
  to pool/main/i/initramfs-tools/initramfs-tools_0.90.tar.gz
initramfs-tools_0.90_all.deb
  to pool/main/i/initramfs-tools/initramfs-tools_0.90_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 429237@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
maximilian attems <maks@debian.org> (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: Thu, 09 Aug 2007 21:30:29 +0200
Source: initramfs-tools
Binary: initramfs-tools
Architecture: source all
Version: 0.90
Distribution: unstable
Urgency: low
Maintainer: Debian kernel team <debian-kernel@lists.debian.org>
Changed-By: maximilian attems <maks@debian.org>
Description: 
 initramfs-tools - tools for generating an initramfs
Closes: 420754 425050 426446 426917 428729 429237 433190 433459 435031 436752
Changes: 
 initramfs-tools (0.90) unstable; urgency=low
 .
   Release "J'aim' pas le fataliste Je n'ai ni foi ni loi"
 .
   [ maximilian attems ]
   * hook-functions: Fix xen i386 boots with optimized 2.5. (closes: 420754)
     Thanks Marco Nenciarini <mnencia@debian.org> for patch.
   * debian/control: Bump dep on klibc-utils from etch. (closes: 435031)
   * scripts/functions: Implement non-zero panic bootarg. Style fix for
     maybe_break().
   * hook-functions: dep_add_modules() fix for md, lv, luks root.
     (closes: #426917, #429237, #426446)
   * debian/scripts: Add /etc/crypttab to reportbug script.  Add /sys/block
     list for MODULES=dep to reportbug script.
   * scripts/functions: Add error message on verbose mode about ignored files
     in boot/hooks dir.  Thanks Kornilios Kourtis <kkourt@cslab.ece.ntua.gr>
     for the initial patch. Fixes a double set_initlist call too. Ignore empty
     dirs earlier too. (closes: #428729, #433459)
   * mkinitramfs.8: Document verbose mode.
   * debian/initramfs-tools.preinst: Inhibit /etc/initramfs-tools/conf.d/resume
     creation in chroot for debian-live and other. (closes: #433190)
     Thanks Kel Modderman <kel@otaku42.de> for the patch.
   * update-initramfs: Improve "altered" error message. (closes: #436752)
   * update-initramfs, update-initramfs.conf: update_initramfs config variable
     is tristate. Set to 'all' to update any initramfs: $(update-initramfs -u).
     Allows specific admin setting. (closes: #425050)
 .
   [ David Härdeman ]
   * hook-functions: Protect all variable with local, plus coding style fixes.
Files: 
 fcea65851e626dc6c1c3a3da43172bf1 656 utils optional initramfs-tools_0.90.dsc
 9e6e6d34c5fd676a8ee3fe3fdb975744 60995 utils optional initramfs-tools_0.90.tar.gz
 f93b1c026cfeefe9d48e866eb89bc444 68036 utils optional initramfs-tools_0.90_all.deb

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

iD8DBQFGu2uVeW7Lc5tEHqgRAs1JAJ9ca9d+JDQMnbRbUKpv4MwrmjGjYwCghDUI
FhqmhhKdKsIkxIQApJYjPno=
=Mq50
-----END PGP SIGNATURE-----


--- End Message ---

Reply to: