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

Bug#783393: initramfs-tools: Missing crypto-components in initramfs when explicitly requested



Package: initramfs-tools
Version: 0.120
Severity: important

The /usr/sbin/mkinitramfs tool does not propagate CRYPTSETUP option to
/usr/share/initramfs-tools/hooks/cryptroot, therefore the option does not
work and in setting which depends on explicit enabling (instead of
autodetection) of cryptroot the crypto-components are not included in
initramfs, which leads to unbootable system.


-- Package-specific info:
-- initramfs sizes
-rw-r--r-- 1 root root 14M Jul  6  2014 /boot/initrd.img-3.14-1-amd64
-rw-r--r-- 1 root root 15M Aug 31  2014 /boot/initrd.img-3.14-2-amd64
-rw-r--r-- 1 root root 16M Apr 26 19:07 /boot/initrd.img-3.16.0-4-amd64
-rw-r--r-- 1 root root 15M Apr 26 17:18 /boot/initrd.img-3.16.0-4-amd64-
-- /proc/cmdline
BOOT_IMAGE=/vmlinuz-3.16.0-4-amd64 root=/dev/dm-0 rootfstype=btrfs rootflags=subvol=root,noatime,ssd cryptopts=source=/dev/sda2,target=sda2,cipher=aes-xts-plain64,size=256,hash=sha256,discard

-- /proc/filesystems
	btrfs
	ext3
	ext2
	ext4

-- lsmod
Module                  Size  Used by
deflate                12551  0 
ctr                    12927  0 
twofish_generic        16569  0 
twofish_avx_x86_64     46079  0 
twofish_x86_64_3way    25483  1 twofish_avx_x86_64
twofish_x86_64         12541  2 twofish_avx_x86_64,twofish_x86_64_3way
twofish_common         20585  4 twofish_generic,twofish_avx_x86_64,twofish_x86_64_3way,twofish_x86_64
camellia_generic       29025  0 
camellia_aesni_avx2    25843  0 
camellia_aesni_avx_x86_64    25925  1 camellia_aesni_avx2
camellia_x86_64        50481  2 camellia_aesni_avx2,camellia_aesni_avx_x86_64
serpent_avx2           45954  0 
serpent_avx_x86_64     46241  1 serpent_avx2
serpent_sse2_x86_64    50146  0 
xts                    12679  3 camellia_x86_64,serpent_sse2_x86_64,twofish_x86_64_3way
serpent_generic        29140  3 serpent_sse2_x86_64,serpent_avx_x86_64,serpent_avx2
blowfish_generic       12464  0 
blowfish_x86_64        21132  0 
blowfish_common        16487  2 blowfish_generic,blowfish_x86_64
cast5_avx_x86_64       49760  0 
cast5_generic          20813  1 cast5_avx_x86_64
cast_common            12313  2 cast5_generic,cast5_avx_x86_64
des_generic            20851  0 
cbc                    12696  0 
cmac                   12709  0 
xcbc                   12709  0 
rmd160                 16640  0 
sha512_ssse3           41814  0 
sha512_generic         12632  1 sha512_ssse3
sha256_ssse3           25692  0 
sha256_generic         16804  1 sha256_ssse3
hmac                   12753  0 
crypto_null            12732  0 
af_key                 35326  0 
xfrm_algo              13031  1 af_key
ext4                  473802  1 
crc16                  12343  1 ext4
mbcache                17171  1 ext4
jbd2                   82413  1 ext4
snd_hda_codec_hdmi     45118  1 
x86_pkg_temp_thermal    12951  0 
intel_powerclamp       17159  0 
iTCO_wdt               12831  0 
iTCO_vendor_support    12649  1 iTCO_wdt
intel_rapl             17356  0 
coretemp               12820  0 
kvm_intel             139116  0 
kvm                   388635  1 kvm_intel
snd_hda_codec_realtek    67127  1 
snd_hda_codec_generic    63142  1 snd_hda_codec_realtek
evdev                  17445  6 
pcspkr                 12595  0 
lpc_ich                20768  0 
mfd_core               12601  1 lpc_ich
i2c_i801               16965  0 
i915                  837145  5 
snd_hda_intel          26327  0 
snd_soc_rt5640         82832  0 
tpm_tis                17231  0 
snd_hda_controller     26646  1 snd_hda_intel
tpm                    31511  1 tpm_tis
snd_soc_rl6231         12442  1 snd_soc_rt5640
battery                13356  0 
nuvoton_cir            17207  0 
snd_hda_codec         104463  5 snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_intel,snd_hda_controller
rc_core                22404  1 nuvoton_cir
snd_soc_core          147254  1 snd_soc_rt5640
drm_kms_helper         49210  1 i915
snd_compress           17197  1 snd_soc_core
snd_hwdep              13148  1 snd_hda_codec
regmap_i2c             12783  1 snd_soc_rt5640
snd_pcm                88662  6 snd_soc_rt5640,snd_soc_core,snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel,snd_hda_controller
video                  18096  1 i915
snd_soc_sst_acpi       12559  0 
mei_me                 17941  0 
drm                   249955  4 i915,drm_kms_helper
snd_timer              26614  1 snd_pcm
i2c_designware_platform    12645  0 
snd                    65244  10 snd_hda_codec_realtek,snd_soc_core,snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_pcm,snd_hda_codec_generic,snd_hda_codec,snd_hda_intel,snd_compress
i2c_designware_core    12813  1 i2c_designware_platform
i2c_algo_bit           12751  1 i915
mei                    74977  1 mei_me
soundcore              13026  2 snd,snd_hda_codec
processor              28221  0 
button                 12944  1 i915
btrfs                 859533  1 
xor                    21040  1 btrfs
raid6_pq               95238  1 btrfs
dm_crypt               22595  1 
dm_mod                 89373  3 dm_crypt
sg                     29973  0 
sd_mod                 44356  3 
crc_t10dif             12431  1 sd_mod
crct10dif_generic      12581  0 
hid_generic            12393  0 
usbhid                 44460  0 
crct10dif_pclmul       13387  1 
crct10dif_common       12356  3 crct10dif_pclmul,crct10dif_generic,crc_t10dif
crc32_pclmul           12915  0 
crc32c_intel           21809  1 
ghash_clmulni_intel    12978  0 
ahci                   33291  2 
libahci                27158  1 ahci
aesni_intel           151423  2 
aes_x86_64             16719  1 aesni_intel
lrw                    12757  9 camellia_aesni_avx2,camellia_x86_64,serpent_sse2_x86_64,aesni_intel,serpent_avx_x86_64,camellia_aesni_avx_x86_64,serpent_avx2,twofish_avx_x86_64,twofish_x86_64_3way
gf128mul               12970  2 lrw,xts
glue_helper            12695  9 camellia_aesni_avx2,camellia_x86_64,serpent_sse2_x86_64,aesni_intel,serpent_avx_x86_64,camellia_aesni_avx_x86_64,serpent_avx2,twofish_avx_x86_64,twofish_x86_64_3way
ablk_helper            12572  8 camellia_aesni_avx2,serpent_sse2_x86_64,aesni_intel,serpent_avx_x86_64,camellia_aesni_avx_x86_64,serpent_avx2,twofish_avx_x86_64,cast5_avx_x86_64
cryptd                 14516  4 ghash_clmulni_intel,aesni_intel,ablk_helper
libata                177457  2 ahci,libahci
scsi_mod              191405  3 sg,libata,sd_mod
e1000e                203664  0 
ehci_pci               12512  0 
ptp                    17692  1 e1000e
ehci_hcd               69837  1 ehci_pci
pps_core               17225  1 ptp
xhci_hcd              148881  0 
usbcore               195340  4 ehci_hcd,ehci_pci,usbhid,xhci_hcd
usb_common             12440  1 usbcore
thermal                17559  0 
fan                    12681  0 
thermal_sys            27642  6 fan,video,intel_powerclamp,thermal,processor,x86_pkg_temp_thermal
i2c_hid                17410  0 
sdhci_acpi             12810  0 
hid                   102264  3 i2c_hid,hid_generic,usbhid
sdhci                  35153  1 sdhci_acpi
i2c_core               46012  9 drm,i915,i2c_i801,snd_soc_rt5640,i2c_hid,i2c_designware_platform,regmap_i2c,drm_kms_helper,i2c_algo_bit
mmc_core              102374  2 sdhci,sdhci_acpi

-- /etc/initramfs-tools/modules

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

-- /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:
btrfs
busybox
cryptgnupg
cryptkeyctl
cryptopenct
cryptopensc
cryptpassdev
cryptroot
dmsetup
fsck
keymap
klibc
kmod
resume
thermal
udev


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

Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=cs_CZ.UTF-8, LC_CTYPE=cs_CZ.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

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  udev         215-17

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

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

-- Configuration Files:
/etc/initramfs-tools/initramfs.conf changed [not included]

-- no debconf information

-- debsums errors found:
debsums: changed file /usr/sbin/mkinitramfs (from initramfs-tools package)


Reply to: