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

2007-06-17 Thread maximilian attems
On Sat, Jun 16, 2007 at 01:50:17PM +0100, Mike Brodbelt wrote:
 -- /etc/initramfs-tools/initramfs.conf
 MODULES=dep
 BUSYBOX=y
 KEYMAP=n
 BOOT=local
 DEVICE=eth0
 NFSROOT=auto

use MODULES=most, as current workaround that is the default anyway
MODULES=dep needs a bit more tuning.
dup report.

regards

--
maks


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



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

2007-06-16 Thread Mike Brodbelt
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_pci89000  0 
button  7952  0 
psmouse34824  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_storage74688  0 
scsi_mod  133132  2 sd_mod,usb_storage
nfs   219756  1 
lockd  57736  2 nfs
nfs_acl 3584  1 nfs
sunrpc147388  4 nfs,lockd,nfs_acl
i915   21376  2 
drm73748  3 i915
rfcomm 35100  0 
l2cap  22276  5 rfcomm
bluetooth  47844  4 rfcomm,l2cap
thermal13832  0 
fan 4868  0 
ac  5252  0 
battery 9988  0 
dm_snapshot16544  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_sample12032  1 
irtty_sir   8192  0 
sir_dev15236  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_bus2432  1 snd_ac97_codec
snd_pcm71176  3 snd_intel8x0,snd_intel8x0m,snd_ac97_codec
snd_timer  20868  1 snd_pcm
snd47716  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_core37392  3 pcmcia,yenta_socket,rsrc_nonstatic
pcspkr  3072  0 
serio_raw   6660  0 
rtc12848  0 
uhci_hcd   22032  0 
irda  167228  3 irtty_sir,sir_dev,nsc_ircc
i2c_i8017564  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 
agpgart30128  3 drm,intel_agp
shpchp 30868  0 
pci_hotplug29752  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