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

Bug#429237: initramfs-tools: Postinst fails on LVM root fs



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



Reply to: