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

Bug#782069: initramfs-tools: Required format of LVM volume names not compatible with manpage for lvchange



Package: initramfs-tools
Version: 0.119
Severity: normal

The man page for lvchange states that the --activate option
[quote]creates a symbolic link
  /dev/VolumeGroupName/LogicalVolumeName
pointing to the device node. ... All software and scripts should access the
device through this symbolic link ... [/quote].

Building an fstab following this advice can lead to an unbootable system,
because initramfs requires LVM volumes to be named
   /dev/mapper/VolumeGroupName-LogicalVolumeName
instead, thus not activating LVM volumes of the form
   /dev/VolumeGroupName/LogicalVolumeName
and thus rendering the system unbootable because the system drops into the
emergency shell.

While it is possible to resume the normal boot process by manually activating
the required LVM volumes (using "/root/sbin/lvchange -ay
VolumeGroupName/LogicalVolumeName" in the emergency shell), this is not
obvious.

A preliminary solution could be to add a strong reminder to the template for
/etc/fstab to only use the form
        /dev/mapper/VolumeGroupName-LogicalVolumeName
for LVM volumes.



-- Package-specific info:
-- initramfs sizes
-rw-r--r-- 1 root root 17M Apr  7 11:16 /boot/initrd.img-3.16-3-amd64
-rw-r--r-- 1 root root 17M Apr  7 11:16 /boot/initrd.img-3.16.0-4-amd64
-- /proc/cmdline
BOOT_IMAGE=/boot/vmlinuz-3.16.0-4-amd64 root=/dev/mapper/desktop-root ro quiet

-- resume
RESUME=/dev/mapper/desktop-swap
-- /proc/filesystems
	btrfs
	ext3
	ext2
	ext4
	fuseblk
	vfat

-- lsmod
Module                  Size  Used by
xt_CHECKSUM            12471  1 
iptable_mangle         12536  1 
ipt_MASQUERADE         12594  3 
iptable_nat            12646  1 
nf_nat_ipv4            12912  1 iptable_nat
nf_nat                 18241  3 ipt_MASQUERADE,nf_nat_ipv4,iptable_nat
nf_conntrack_ipv4      18448  2 
nf_defrag_ipv4         12483  1 nf_conntrack_ipv4
xt_conntrack           12681  1 
nf_conntrack           87424  6 ipt_MASQUERADE,nf_nat,nf_nat_ipv4,xt_conntrack,iptable_nat,nf_conntrack_ipv4
ipt_REJECT             12465  2 
xt_tcpudp              12527  6 
iptable_filter         12536  1 
ip_tables              26011  3 iptable_filter,iptable_mangle,iptable_nat
x_tables               27111  8 xt_CHECKSUM,ip_tables,xt_tcpudp,ipt_MASQUERADE,xt_conntrack,iptable_filter,ipt_REJECT,iptable_mangle
snd_hrtimer            12604  1 
snd_seq_midi           12848  0 
snd_seq_midi_event     13316  1 snd_seq_midi
cpufreq_conservative    14184  0 
cpufreq_stats          12782  0 
snd_seq                57061  3 snd_seq_midi_event,snd_seq_midi
cpufreq_userspace      12525  0 
cpufreq_powersave      12454  0 
cfg80211              405538  0 
binfmt_misc            16949  1 
bnep                   17431  2 
nfsd                  263032  2 
nfs_acl                12511  1 nfsd
rpcsec_gss_krb5        34296  0 
auth_rpcgss            51211  2 nfsd,rpcsec_gss_krb5
oid_registry           12419  1 auth_rpcgss
nfsv4                 410783  1 
dns_resolver           12641  1 nfsv4
nfs                   188136  2 nfsv4
lockd                  83389  2 nfs,nfsd
sunrpc                237402  14 nfs,nfsd,rpcsec_gss_krb5,auth_rpcgss,lockd,nfsv4,nfs_acl
fscache                45542  2 nfs,nfsv4
bridge                106102  0 
stp                    12437  1 bridge
llc                    12745  2 stp,bridge
snd_usb_audio         135354  2 
snd_usbmidi_lib        23388  1 snd_usb_audio
snd_rawmidi            26806  2 snd_usbmidi_lib,snd_seq_midi
snd_seq_device         13132  3 snd_seq,snd_rawmidi,snd_seq_midi
nls_utf8               12456  1 
nls_cp437              16553  1 
vfat                   17135  1 
fat                    61986  1 vfat
nouveau              1122419  3 
eeepc_wmi              12600  0 
asus_wmi               22781  1 eeepc_wmi
sparse_keymap          12818  1 asus_wmi
kvm_amd                59091  0 
kvm                   388635  1 kvm_amd
snd_hda_codec_realtek    67127  1 
snd_hda_codec_generic    63107  1 snd_hda_codec_realtek
crc32_pclmul           12915  0 
mxm_wmi                12515  1 nouveau
snd_hda_intel          26327  6 
video                  18096  2 nouveau,asus_wmi
gspca_sn9c20x          33897  0 
snd_hda_controller     26727  1 snd_hda_intel
gspca_main             30828  1 gspca_sn9c20x
ghash_clmulni_intel    12978  0 
snd_hda_codec         104463  4 snd_hda_codec_realtek,snd_hda_codec_generic,snd_hda_intel,snd_hda_controller
snd_hwdep              13148  2 snd_usb_audio,snd_hda_codec
snd_pcm_oss            44798  0 
ttm                    77862  1 nouveau
aesni_intel           151423  0 
videodev              126451  2 gspca_sn9c20x,gspca_main
aes_x86_64             16719  1 aesni_intel
lrw                    12757  1 aesni_intel
gf128mul               12970  1 lrw
glue_helper            12695  1 aesni_intel
ecb                    12737  2 
btusb                  29721  0 
drm_kms_helper         49210  1 nouveau
ablk_helper            12572  1 aesni_intel
media                  18305  1 videodev
snd_mixer_oss          22042  1 snd_pcm_oss
bluetooth             374429  21 bnep,btusb
6lowpan_iphc           16588  1 bluetooth
snd_pcm                88662  5 snd_pcm_oss,snd_usb_audio,snd_hda_codec,snd_hda_intel,snd_hda_controller
snd_timer              26614  3 snd_hrtimer,snd_pcm,snd_seq
snd                    65244  31 snd_hda_codec_realtek,snd_pcm_oss,snd_usb_audio,snd_hwdep,snd_timer,snd_pcm,snd_seq,snd_rawmidi,snd_hda_codec_generic,snd_usbmidi_lib,snd_hda_codec,snd_hda_intel,snd_seq_device,snd_mixer_oss
drm                   249955  6 ttm,drm_kms_helper,nouveau
sp5100_tco             12864  0 
evdev                  17445  18 
i2c_piix4              20864  0 
i2c_algo_bit           12751  1 nouveau
cryptd                 14516  3 ghash_clmulni_intel,aesni_intel,ablk_helper
pcspkr                 12595  0 
k10temp                12618  0 
rfkill                 18867  4 cfg80211,bluetooth,asus_wmi
serio_raw              12849  0 
wmi                    17339  3 mxm_wmi,nouveau,asus_wmi
edac_mce_amd           21166  0 
soundcore              13026  2 snd,snd_hda_codec
i2c_core               46012  6 drm,i2c_piix4,drm_kms_helper,i2c_algo_bit,nouveau,videodev
fam15h_power           12684  0 
efi_pstore             12805  1 
shpchp                 31121  0 
button                 12944  1 nouveau
edac_core              51465  0 
acpi_cpufreq           17218  0 
efivarfs               12902  0 
processor              28221  9 acpi_cpufreq
thermal_sys            27642  2 video,processor
efivars                17257  1 efi_pstore
loop                   26605  0 
fuse                   83350  5 
autofs4                35529  2 
usb_storage            56215  0 
hid_logitech_dj        17192  0 
usbhid                 44460  0 
hid                   102264  3 usbhid,hid_logitech_dj
ext4                  473802  7 
crc16                  12343  2 ext4,bluetooth
mbcache                17171  1 ext4
jbd2                   82413  1 ext4
btrfs                 859583  0 
xor                    21040  1 btrfs
raid6_pq               95238  1 btrfs
dm_mod                 89373  32 
sg                     29973  0 
sr_mod                 21903  0 
cdrom                  47424  1 sr_mod
sd_mod                 44356  3 
crc_t10dif             12431  1 sd_mod
crct10dif_generic      12581  0 
ohci_pci               12808  0 
crct10dif_pclmul       13387  1 
crct10dif_common       12356  3 crct10dif_pclmul,crct10dif_generic,crc_t10dif
crc32c_intel           21809  1 
ahci                   33291  3 
libahci                27158  1 ahci
ohci_hcd               42982  1 ohci_pci
ehci_pci               12512  0 
xhci_hcd              148881  0 
ehci_hcd               69837  1 ehci_pci
libata                177457  2 ahci,libahci
usbcore               195340  12 gspca_sn9c20x,btusb,snd_usb_audio,usb_storage,ohci_hcd,ohci_pci,snd_usbmidi_lib,ehci_hcd,ehci_pci,gspca_main,usbhid,xhci_hcd
scsi_mod              191405  5 sg,usb_storage,libata,sd_mod,sr_mod
usb_common             12440  1 usbcore
r8169                  68262  0 
mii                    12675  1 r8169

-- /etc/initramfs-tools/modules

-- /etc/kernel-img.conf
# This is a sample /etc/kernel-img.conf file
# See kernel-img.conf(5) for details

# If you want the symbolic link (or image, if move_image is set) to be
# stored elsewhere than / set this variable to the dir where you
# want the symbolic link.  Please note that this is not a Boolean
# variable.  This may be of help to loadlin users, who may set both
# this and move_image. Defaults to /. This can be used in conjunction
# with all above options except link_in_boot, which would not make
# sense.  (If both image_dest and link_in_boot are set, link_in_boot
# overrides).
image_dest = /

# This option manipulates the build link created by recent kernels. If
# the link is a dangling link, and if a the corresponding kernel
# headers appear to have been installed on the system, a new symlink
# shall be created to point to them.
#relink_build_link = YES

# If set, the preinst shall silently try to move /lib/modules/version
# out of the way if it is the same version as the image being
# installed. Use at your own risk.
#clobber_modules = NO

# If set, does not prompt to continue after a depmod problem in the
# postinstall script.  This facilitates automated installs, though it
# may mask a problem with the kernel image. A diag‐ nostic is still
# issued. This is unset be default.
# ignore_depmod_err = NO

# These setting are for legacy postinst scripts only. newer postinst
# scripts from the kenrel-package do not use them
do_symlinks = yes
do_bootloader = no
do_initrd=yes
link_in_boot=no

-- /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

-- /etc/crypttab
# <target name>	<source device>		<key file>	<options>

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

/usr/share/initramfs-tools/hooks:
amd64_microcode
btrfs
busybox
dmsetup
fsck
fuse
intel_microcode
keymap
klibc
kmod
lvm2
ntfs_3g
resume
thermal
udev
zz-busybox


-- System Information:
Debian Release: 8.0
  APT prefers testing
  APT policy: (600, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

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

Versions of packages initramfs-tools depends on:
ii  busybox            1:1.22.0-9+deb8u1
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-14

Versions of packages initramfs-tools recommends:
ii  busybox  1:1.22.0-9+deb8u1

Versions of packages initramfs-tools suggests:
ii  bash-completion  1:2.1-4

-- no debconf information


Reply to: