[pkg-cryptsetup-devel] Bug#783297: breaks initramfs if BUSYBOX=n

Michael Biebl biebl at debian.org
Sat Apr 25 14:22:13 UTC 2015


Package: cryptsetup
Version: 2:1.6.6-5
Severity: grave

Hi,

if the cryptsetup package is installed, it also installed a
initramfs-tools hook.

I use BUSYBOX=no in initramfs.conf, but the  cryptroot hook copies
/bin/busybox to the initramfs nonetheless.

As a result, the initramfs is unable to boot the system

I'm getting
Begin: Running /scripts/init-bottom ... done
/init: exec: line 338: switch_root: not found
...Kernel panic -n not syncing: Attempted to kill init


To reproduce the bug, make sure you have the "busybox" package installed
(which it is, by default), set BUSYBOX=n in
/etc/initramfs-tools/initramfs.conf and run "update-initramfs -u" and
reboot.

Be careful to either test this in a VM or keep a rescue media at hand.




-- Package-specific info:
-- /proc/cmdline
BOOT_IMAGE=/boot/vmlinuz-3.16.0-4-amd64 root=UUID=5c503ec2-6528-44bb-9ff5-aa2687aa9706 ro quiet splash systemd.show_status=true

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

-- /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
# / was on /dev/sda7 during installation
UUID=5c503ec2-6528-44bb-9ff5-aa2687aa9706 /               ext4    errors=remount-ro 0       1
# /home was on /dev/sda6 during installation
UUID=7652cf98-e671-47ea-80d6-02be15580bb5 /home           ext4    defaults        0       2
# swap was on /dev/sda5 during installation
UUID=c0d2bc19-898f-4306-a734-85e547e249f0 none            swap    sw              0       0

LABEL=Data	/mnt/data	ntfs-3g	user,noauto,comment=systemd.automount	0	0

LABEL=Fedora	/mnt/fedora	ext4	noauto		0	0
LABEL=Ubuntu	/mnt/ubuntu	ext4	noauto		0	0
LABEL=Asteria   /mnt/ssd ntfs-3g noauto,nofail,user,x-gvfs-show 0 0
#LABEL=BACKUP    /mnt/usb	ext3    auto		0 	2
#192.168.178.86:/srv/nfs /mnt/backup nfs _netdev 0 0

-- lsmod
Module                  Size  Used by
vhost_net              17307  1 
vhost                  22500  1 vhost_net
macvtap                17526  1 vhost_net
macvlan                18315  1 macvtap
tun                    26385  3 vhost_net
cpuid                  12663  0 
ctr                    12927  3 
ccm                    17577  3 
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
bridge                106102  0 
stp                    12437  1 bridge
llc                    12745  2 stp,bridge
vmnet                  50245  13 
ppdev                  16782  0 
parport_pc             26300  0 
parport                35749  2 ppdev,parport_pc
fuse                   83350  7 
vmw_vsock_vmci_transport    25862  0 
vsock                  30772  1 vmw_vsock_vmci_transport
vmw_vmci               55383  1 vmw_vsock_vmci_transport
pci_stub               12429  1 
vboxpci                23077  0 
vboxnetadp             25443  0 
vboxnetflt             23324  0 
vmmon                  81251  0 
vboxdrv               340067  3 vboxnetadp,vboxnetflt,vboxpci
binfmt_misc            16949  1 
joydev                 17063  0 
hid_generic            12393  0 
hid_microsoft          12578  0 
usbhid                 44460  0 
cdc_mbim               12825  0 
ecb                    12737  0 
hid                   102264  3 hid_generic,hid_microsoft,usbhid
iTCO_wdt               12831  0 
iTCO_vendor_support    12649  1 iTCO_wdt
x86_pkg_temp_thermal    12951  0 
intel_powerclamp       17159  0 
intel_rapl             17356  0 
coretemp               12820  0 
uvcvideo               79005  0 
videobuf2_vmalloc      12816  1 uvcvideo
videobuf2_memops       12519  1 videobuf2_vmalloc
cdc_ncm                26618  1 cdc_mbim
videobuf2_core         47787  1 uvcvideo
usbnet                 30844  2 cdc_mbim,cdc_ncm
v4l2_common            12995  1 videobuf2_core
videodev              126451  3 uvcvideo,v4l2_common,videobuf2_core
mii                    12675  1 usbnet
kvm_intel             139116  3 
cdc_wdm                17427  1 cdc_mbim
media                  18305  2 uvcvideo,videodev
btusb                  29721  0 
kvm                   388635  1 kvm_intel
bluetooth             374429  1 btusb
cdc_acm                30362  0 
6lowpan_iphc           16588  1 bluetooth
crc32_pclmul           12915  0 
ghash_clmulni_intel    12978  0 
arc4                   12536  2 
iwldvm                135156  0 
mac80211              474218  1 iwldvm
aesni_intel           151423  6 
aes_x86_64             16719  1 aesni_intel
lrw                    12757  1 aesni_intel
gf128mul               12970  1 lrw
glue_helper            12695  1 aesni_intel
ablk_helper            12572  1 aesni_intel
cryptd                 14516  3 ghash_clmulni_intel,aesni_intel,ablk_helper
psmouse                99143  0 
serio_raw              12849  0 
pcspkr                 12595  0 
i2c_i801               16965  0 
snd_hda_codec_hdmi     45118  1 
iwlwifi                96547  1 iwldvm
snd_hda_codec_conexant    17841  1 
snd_hda_codec_generic    63142  1 snd_hda_codec_conexant
cfg80211              405538  3 iwlwifi,mac80211,iwldvm
thinkpad_acpi          69119  1 
nvram                  13034  1 thinkpad_acpi
snd_hda_intel          26327  3 
rfkill                 18867  5 cfg80211,thinkpad_acpi,bluetooth
snd_hda_controller     26646  1 snd_hda_intel
ac                     12715  0 
tpm_tis                17231  0 
battery                13356  0 
tpm                    31511  1 tpm_tis
snd_hda_codec         104463  5 snd_hda_codec_hdmi,snd_hda_codec_conexant,snd_hda_codec_generic,snd_hda_intel,snd_hda_controller
snd_hwdep              13148  1 snd_hda_codec
evdev                  17445  17 
snd_pcm                88662  4 snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel,snd_hda_controller
shpchp                 31121  0 
snd_timer              26614  1 snd_pcm
snd                    65244  15 snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_hda_codec_conexant,snd_pcm,snd_hda_codec_generic,snd_hda_codec,snd_hda_intel,thinkpad_acpi
lpc_ich                20768  0 
soundcore              13026  2 snd,snd_hda_codec
mfd_core               12601  1 lpc_ich
mei_me                 17941  0 
mei                    74977  1 mei_me
processor              28221  0 
autofs4                35529  3 
ext4                  473802  2 
crc16                  12343  2 ext4,bluetooth
mbcache                17171  1 ext4
jbd2                   82413  1 ext4
btrfs                 859533  0 
xor                    21040  1 btrfs
raid6_pq               95238  1 btrfs
dm_mirror              21657  0 
dm_region_hash         13299  1 dm_mirror
dm_log                 17539  2 dm_region_hash,dm_mirror
dm_mod                 89373  2 dm_log,dm_mirror
sg                     29973  0 
sd_mod                 44356  5 
sr_mod                 21903  0 
crc_t10dif             12431  1 sd_mod
cdrom                  47424  1 sr_mod
crct10dif_generic      12581  0 
ahci                   33291  4 
libahci                27158  1 ahci
crct10dif_pclmul       13387  1 
crct10dif_common       12356  3 crct10dif_pclmul,crct10dif_generic,crc_t10dif
crc32c_intel           21809  1 
libata                177457  2 ahci,libahci
scsi_mod              191405  4 sg,libata,sd_mod,sr_mod
xhci_hcd              148881  0 
sdhci_pci              22097  0 
i915                  837145  4 
sdhci                  35153  1 sdhci_pci
ehci_pci               12512  0 
ehci_hcd               69837  1 ehci_pci
i2c_algo_bit           12751  1 i915
mmc_core              102374  2 sdhci,sdhci_pci
drm_kms_helper         49210  1 i915
e1000e                203664  0 
drm                   249955  6 i915,drm_kms_helper
usbcore               195340  11 btusb,uvcvideo,ehci_hcd,ehci_pci,usbhid,usbnet,cdc_mbim,cdc_acm,cdc_ncm,cdc_wdm,xhci_hcd
ptp                    17692  1 e1000e
pps_core               17225  1 ptp
usb_common             12440  1 usbcore
i2c_core               46012  7 drm,i915,i2c_i801,drm_kms_helper,i2c_algo_bit,v4l2_common,videodev
thermal                17559  0 
wmi                    17339  0 
video                  18096  1 i915
button                 12944  1 i915
thermal_sys            27642  5 video,intel_powerclamp,thermal,processor,x86_pkg_temp_thermal


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

Kernel: Linux 3.16.0-4-amd64 (SMP w/4 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 cryptsetup depends on:
ii  cryptsetup-bin         2:1.6.6-5
ii  debconf [debconf-2.0]  1.5.56
ii  dmsetup                2:1.02.90-2.2
ii  libc6                  2.19-18

Versions of packages cryptsetup recommends:
ii  busybox                                 1:1.22.0-15
ii  console-setup                           1.123
ii  initramfs-tools [linux-initramfs-tool]  0.120
ii  kbd                                     1.15.5-2

Versions of packages cryptsetup suggests:
ii  dosfstools              3.0.27-1
pn  keyutils                <none>
ii  liblocale-gettext-perl  1.05-8+b1

-- debconf information excluded



More information about the pkg-cryptsetup-devel mailing list