Package: initramfs-tools Version: 0.125 Severity: normal Initially i thought to file this bug to lvm2 package but now i suspect it's more related with kernel modules dependencies and the manual_add_modules() hook of initramfs-tools.
Suppose your system has lvm2 installed but not mdadm. Now search for the raid modules installed in the initramfs image: lsinitramfs IMG | grep raid You will notice that there are various raid modules loaded but not raid1. LVM is a very flexible system that let's you convert your volume setup from linear to raidN and viceversa, with mounted filesystem. So if you, for example, try to you convert your single disk volume to a two disks raid1 volume, you will have an unbootable system, due to failure of volume activation caused by the missing raid1 module. The workaround it to add "raidi1" to /etc/initramfs-tools/modules and update the initramfs before rebooting. The issue is also described here: https://bugs.launchpad.net/ubuntu/+source/lvm2/+bug/1509717 Indeed it can be asked to the lvm2 maintainer to add "raid1" module to the initramfs hook. Currently /usr/share/initramfs-tools/hooks/lvm2 load these modules: dm_mod dm_snapshot dm_mirror dm_raid But since with the above modules, various raid modules get loaded as dependencies, i wonder why raid1 is not. -- Package-specific info: -- initramfs sizes -rw-r--r-- 1 root root 19M Oct 20 13:26 /boot/initrd.img-4.6.0-1-amd64 -rw-r--r-- 1 root root 19M Oct 20 13:25 /boot/initrd.img-4.7.0-1-amd64 -- /proc/cmdline BOOT_IMAGE=/vmlinuz-4.7.0-1-amd64 root=/dev/mapper/vg0-debian--root ro systemd.show_status=1 quiet -- resume RESUME=UUID=165d521e-0cc9-4bf4-bc12-a995e826a649 -- /proc/filesystems ext3 ext2 ext4 vfat -- lsmod Module Size Used by cpuid 16384 0 nls_ascii 16384 1 nls_cp437 20480 1 snd_hda_codec_realtek 86016 1 snd_hda_codec_hdmi 45056 1 snd_hda_codec_generic 69632 1 snd_hda_codec_realtek vfat 20480 1 fat 69632 1 vfat amdkfd 126976 1 efi_pstore 16384 0 kvm_amd 73728 0 kvm 573440 1 kvm_amd irqbypass 16384 1 kvm efivars 20480 1 efi_pstore snd_hda_intel 36864 0 radeon 1490944 1 snd_hda_codec 135168 4 snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_intel serio_raw 16384 0 pcspkr 16384 0 snd_hda_core 81920 5 snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_codec,snd_hda_intel evdev 24576 2 k10temp 16384 0 ttm 98304 1 radeon snd_hwdep 16384 1 snd_hda_codec nuvoton_cir 24576 0 drm_kms_helper 147456 1 radeon snd_pcm 110592 4 snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel,snd_hda_core snd_timer 32768 1 snd_pcm drm 364544 4 ttm,drm_kms_helper,radeon sp5100_tco 16384 0 snd 81920 8 snd_hda_codec_realtek,snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_pcm,snd_hda_codec_generic,snd_hda_codec,snd_hda_intel sg 32768 0 soundcore 16384 1 snd i2c_piix4 24576 0 shpchp 36864 0 rc_core 28672 1 nuvoton_cir i2c_algo_bit 16384 1 radeon button 16384 0 acpi_cpufreq 20480 0 tpm_tis 20480 0 tpm 45056 1 tpm_tis xt_tcpudp 16384 1 nf_conntrack_ipv4 20480 5 nf_defrag_ipv4 16384 1 nf_conntrack_ipv4 xt_conntrack 16384 5 nf_conntrack 114688 2 xt_conntrack,nf_conntrack_ipv4 iptable_filter 16384 1 sch_fq_codel 20480 3 efivarfs 16384 1 ip_tables 24576 1 iptable_filter x_tables 36864 4 ip_tables,xt_tcpudp,xt_conntrack,iptable_filter autofs4 40960 2 ext4 589824 2 ecb 16384 0 glue_helper 16384 0 lrw 16384 0 gf128mul 16384 1 lrw ablk_helper 16384 0 cryptd 20480 1 ablk_helper aes_x86_64 20480 0 crc16 16384 1 ext4 jbd2 106496 1 ext4 mbcache 16384 3 ext4 sr_mod 24576 0 cdrom 57344 1 sr_mod hid_generic 16384 0 raid1 36864 2 usbhid 49152 0 hid 118784 2 hid_generic,usbhid dm_raid 28672 2 raid456 106496 1 dm_raid async_raid6_recov 20480 1 raid456 async_memcpy 16384 2 raid456,async_raid6_recov async_pq 16384 2 raid456,async_raid6_recov async_xor 16384 3 async_pq,raid456,async_raid6_recov async_tx 16384 5 async_pq,raid456,async_xor,async_memcpy,async_raid6_recov md_mod 131072 3 raid456,dm_raid,raid1 xor 24576 1 async_xor raid6_pq 102400 3 async_pq,raid456,async_raid6_recov libcrc32c 16384 1 raid456 crc32c_generic 16384 5 dm_mod 106496 31 dm_raid usb_storage 69632 0 sd_mod 45056 6 ohci_pci 16384 0 psmouse 126976 0 ohci_hcd 49152 1 ohci_pci ehci_pci 16384 0 ehci_hcd 77824 1 ehci_pci ahci 36864 4 libahci 32768 1 ahci libata 245760 2 ahci,libahci usbcore 241664 6 usb_storage,ohci_hcd,ohci_pci,ehci_hcd,ehci_pci,usbhid scsi_mod 225280 5 sg,usb_storage,libata,sd_mod,sr_mod usb_common 16384 1 usbcore r8169 81920 0 mii 16384 1 r8169 fjes 28672 0 -- /etc/initramfs-tools/modules raid1 -- /etc/kernel-img.conf # Kernel image management overrides # See kernel-img.conf(5) for details do_symlinks = yes do_bootloader = no do_initrd = yes link_in_boot = no -- /etc/initramfs-tools/initramfs.conf MODULES=most BUSYBOX=auto KEYMAP=n COMPRESS=gzip DEVICE= NFSROOT=auto -- /etc/initramfs-tools/update-initramfs.conf update_initramfs=yes backup_initramfs=no -- /proc/mdstat Personalities : [raid6] [raid5] [raid4] [raid1] unused devices: <none> -- mkinitramfs hooks /etc/initramfs-tools/hooks/: /usr/share/initramfs-tools/hooks: amd64_microcode dmsetup fsck fuse intel_microcode keymap klibc-utils kmod lvm2 ntfs_3g resume thermal udev zz-busybox -- System Information: Debian Release: stretch/sid APT prefers testing APT policy: (500, 'testing') Architecture: amd64 (x86_64) Kernel: Linux 4.7.0-1-amd64 (SMP w/2 CPU cores) Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.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 initramfs-tools-core 0.125 ii linux-base 4.5 initramfs-tools recommends no packages. Versions of packages initramfs-tools suggests: ii bash-completion 1:2.1-4.3 -- no debconf information

