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

Bug#781661: initramfs-tools: Split /usr on LVM fails when using LABEL or UUID in fstab



Package: initramfs-tools
Version: 0.119
Severity: grave
Justification: causes non-serious data loss

Dear Maintainer,

   * What led up to the situation?
	Upgrading a system from Wheezy to Jessie. The system uses a split /usr on LVM and uses LABEL in fstab to mount this.
   * What exactly did you do (or not do) that was effective (or
     ineffective)?
	fstab looks like this:
	...
	LABEL=usr		/usr	xfs	...
	...

	blkid's output looks like this:
	...
	/dev/mapper/vg00-usr: LABEL="usr" ...
	...
   * What was the outcome of this action?
	Initramfs loops in "Begin: Running /scripts/local-block ... done." until it gives up and drops to the shell (or panics when panic=xx is given).
   * What outcome did you expect instead?
	Activate volume group, mount /usr, continue to boot.

Possible workarounds beforehand:
- Changing fstab from "LABEL=usr /usr ..." to "/dev/mapper/vg00-usr /usr ..." *before* rebooting works around this bug.
(Note that doing the reverse change - at any point after the installation - would also trigger this bug. Basically, UUID or LABEL must not be used for /usr when using Jessie with systemd)

Possible workarounds afterwards:
- Running "vgchange -ay; exit" in the initramfs recovery shell allows the boot to continue
- Using init=/lib/sysvinit/init also works (because then initramfs will not attempts to mount /usr)

Without those workarounds, which all require console access, the system will be unable to boot after the upgrade.

I originally added this to Bug #776409, but it looks like a different bug, after all.

Regards,
Marc

-- Package-specific info:
-- initramfs sizes
-rw-r--r-- 1 root root 16M Mar 26 08:46 /boot/initrd.img-3.16.0-4-amd64
-rw-r--r-- 1 root root 12M Mar 24 16:25 /boot/initrd.img-3.2.0-4-amd64
-- /proc/cmdline
BOOT_IMAGE=/vmlinuz-3.16.0-4-amd64 root=UUID=e4b3bfc7-1bf1-498a-aeae-91ed21190e2e ro panic=30 elevator=deadline

-- /proc/filesystems
	ext3
	ext2
	ext4
	xfs

-- lsmod
Module                  Size  Used by
ipt_REJECT             12465  1 
xt_LOG                 17171  1 
nf_conntrack_ipv4      18448  2 
nf_defrag_ipv4         12483  1 nf_conntrack_ipv4
xt_conntrack           12681  2 
nf_conntrack           87424  2 xt_conntrack,nf_conntrack_ipv4
xt_tcpudp              12527  15 
ip6table_filter        12540  0 
ip6_tables             26025  1 ip6table_filter
iptable_filter         12536  1 
ip_tables              26011  1 iptable_filter
x_tables               27111  8 ip6table_filter,ip_tables,xt_tcpudp,xt_conntrack,xt_LOG,iptable_filter,ipt_REJECT,ip6_tables
ppdev                  16782  0 
psmouse                98616  0 
evdev                  17445  3 
i2c_piix4              20864  0 
pcspkr                 12595  0 
serio_raw              12849  0 
i2c_core               46012  1 i2c_piix4
parport_pc             26300  0 
parport                35749  2 ppdev,parport_pc
battery                13356  0 
button                 12944  0 
ac                     12715  0 
processor              28221  0 
thermal_sys            27642  1 processor
autofs4                35529  2 
xfs                   779874  4 
crc32c_generic         12656  1 
libcrc32c              12426  1 xfs
usbhid                 44460  0 
hid                   102264  1 usbhid
ohci_hcd               42982  0 
uhci_hcd               43499  0 
ehci_pci               12512  0 
ehci_hcd               69837  1 ehci_pci
usbcore               195340  5 uhci_hcd,ohci_hcd,ehci_hcd,ehci_pci,usbhid
usb_common             12440  1 usbcore
ext4                  473802  2 
crc16                  12343  1 ext4
mbcache                17171  1 ext4
jbd2                   82413  1 ext4
dm_mod                 89373  15 
sg                     29973  0 
sd_mod                 44356  4 
crc_t10dif             12431  1 sd_mod
crct10dif_generic      12581  1 
crct10dif_common       12356  2 crct10dif_generic,crc_t10dif
virtio_net             26553  0 
ahci                   33291  3 
libahci                27158  1 ahci
libata                177457  2 ahci,libahci
scsi_mod              191405  3 sg,libata,sd_mod
virtio_pci             17389  0 
virtio_ring            17513  2 virtio_net,virtio_pci
virtio                 13058  2 virtio_net,virtio_pci

-- /etc/initramfs-tools/modules

-- /etc/initramfs-tools/initramfs.conf
MODULES=most
BUSYBOX=y
KEYMAP=n
COMPRESS=gzip
DEVICE=
NFSROOT=auto

-- /etc/initramfs-tools/update-initramfs.conf
update_initramfs=yes
backup_initramfs=no

-- mkinitramfs hooks
/etc/initramfs-tools/hooks/:

/usr/share/initramfs-tools/hooks:
busybox
dmsetup
fsck
keymap
klibc
kmod
lvm2
resume
thermal
udev


-- System Information:
Debian Release: 8.0
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 3.16.0-4-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages initramfs-tools depends on:
ii  cpio               2.11+dfsg-4.1
ii  klibc-utils        2.0.4-2
ii  kmod               18-3
ii  module-init-tools  18-3
ii  udev               215-12

Versions of packages initramfs-tools recommends:
pn  busybox | busybox-initramfs | busybox-static  <none>

Versions of packages initramfs-tools suggests:
pn  bash-completion  <none>

-- no debconf information


Reply to: