[pkg-cryptsetup-devel] Bug#591853: cryptsetup: initramfs script uses sed without warranty
Yves-Alexis Perez
corsac at debian.org
Thu Aug 5 21:45:47 UTC 2010
Package: cryptsetup
Version: 2:1.1.3-3
Severity: normal
Hey,
today I installed a box using debootstrap, and it was using
cryptsetup+lvm layout (sda2 -> sda2_crypt -> pv -> vg -> lvs). I
installed cryptsetup and lvm2 inside the chroot, installed a kernel and
bootloader, basically I did the usual post-install steps when installing
using debootstrap, and rebooted.
I don't have the exact errors messages, but, after entering my
passphrase, I got messages like “sed: no such command” or something, and
I was dropped to an initramfs shell.
I was able to boot after that by running:
lvm vgscan
vgchange -ay
(vgchange -ay <vgname> would have worked too, I guess)
When looking at the initramfs, indeed there wasn't any sed binary
available. My fix was to install busybox and rebuild the initramfs, so
busybox is copied into initramfs and used as the shell, and it has the
builtin sed, and boot succeeds. So adding a dependency on busybox would
fix the problem.
Another fix would be to include the sed binary into the initramfs.
If you need more info, please ask.
Cheers,
--
Yves-Alexis
-- Package-specific info:
-- /proc/cmdline
BOOT_IMAGE=/vmlinuz-2.6.32-5-amd64 root=/dev/mapper/hidalgo-root ro quiet splash
-- /etc/crypttab
# sda5_crypt /dev/sda5 none luks
sda5_crypt UUID=dc5a13af-48af-44da-963e-114e40595dcf none luks
-- /etc/fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
/dev/mapper/hidalgo-root / ext3 errors=remount-ro,relatime,commit=30 0 1
# /dev/sda1 /boot ext3 defaults,relatime 0 2
UUID=c2b46edf-bbc0-42a6-ac2b-4b48de7579dc /boot ext3 defaults,relatime 0 2
/dev/mapper/hidalgo-home /home ext3 defaults,relatime,commit=30 0 2
/dev/mapper/hidalgo-swap_1 none swap sw 0 0
/dev/cdrom /media/cdrom udf,iso9660 user,noauto 0 0
-- lsmod
Module Size Used by
nls_utf8 1208 0
nls_cp437 5817 0
vfat 7884 0
fat 40038 1 vfat
cdc_ether 3377 0
cdc_phonet 4178 0
usbnet 11779 1 cdc_ether
cdc_acm 13686 0
mii 3210 1 usbnet
phonet 15127 1 cdc_phonet
ext2 52969 0
usb_storage 39561 0
udf 66612 0
crc_itu_t 1307 1 udf
sco 7209 2
bridge 39598 0
stp 1440 1 bridge
bnep 9427 2
rfcomm 29581 4
l2cap 24736 6 bnep,rfcomm
crc16 1319 1 l2cap
parport_pc 18855 0
parport 27954 1 parport_pc
kvm_intel 38050 0
kvm 213704 1 kvm_intel
ip6t_LOG 4378 3
nf_conntrack_ipv6 10467 7
ip6table_filter 2384 1
ip6_tables 15075 2 ip6t_LOG,ip6table_filter
xt_helper 1227 2
ipt_LOG 4518 3
xt_tcpudp 2319 74
xt_pkttype 1003 1
nf_conntrack_ipv4 9833 7
nf_defrag_ipv4 1139 1 nf_conntrack_ipv4
xt_state 1303 12
nf_conntrack 46551 4 nf_conntrack_ipv6,xt_helper,nf_conntrack_ipv4,xt_state
ipt_addrtype 1769 3
iptable_filter 2258 1
ip_tables 13899 1 iptable_filter
x_tables 12845 9 ip6t_LOG,ip6_tables,xt_helper,ipt_LOG,xt_tcpudp,xt_pkttype,xt_state,ipt_addrtype,ip_tables
deflate 1767 0
zlib_deflate 17746 1 deflate
ctr 3363 0
twofish 6025 0
twofish_common 13472 1 twofish
camellia 17463 0
serpent 16791 0
blowfish 7944 0
cast5 16349 0
des_generic 15475 0
xcbc 2325 0
rmd160 7104 0
sha1_generic 1759 0
hmac 2593 0
crypto_null 2492 0
af_key 25421 0
fuse 50190 3
tp_smapi 18152 0
thinkpad_ec 3694 1 tp_smapi
coretemp 4245 0
snd_hda_codec_analog 64562 1
btusb 9785 0
bluetooth 41827 7 sco,bnep,rfcomm,l2cap,btusb
snd_hda_intel 19987 2
snd_hda_codec 54244 2 snd_hda_codec_analog,snd_hda_intel
sg 18744 0
snd_hwdep 5380 1 snd_hda_codec
snd_pcm 60471 2 snd_hda_intel,snd_hda_codec
sr_mod 12602 0
arc4 1274 2
ecb 1841 2
snd_seq 42881 0
snd_timer 15582 2 snd_pcm,snd_seq
snd_seq_device 4493 1 snd_seq
iwlagn 73100 0
cdrom 29415 1 sr_mod
pcmcia 19474 0
iwlcore 77458 1 iwlagn
ata_generic 2983 0
snd 46446 12 snd_hda_codec_analog,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm,snd_seq,snd_timer,snd_seq_device
soundcore 4598 1 snd
uhci_hcd 18521 0
ehci_hcd 31135 0
yenta_socket 19115 1
mac80211 136876 2 iwlagn,iwlcore
snd_page_alloc 6249 2 snd_hda_intel,snd_pcm
psmouse 49777 0
ata_piix 21012 0
rsrc_nonstatic 7294 1 yenta_socket
usbcore 121959 9 cdc_ether,cdc_phonet,usbnet,cdc_acm,usb_storage,btusb,uhci_hcd,ehci_hcd
thinkpad_acpi 50087 0
i2c_i801 7830 0
e1000e 109967 0
cfg80211 101432 3 iwlagn,iwlcore,mac80211
wmi 4323 0
serio_raw 3752 0
led_class 2433 2 iwlcore,thinkpad_acpi
pcmcia_core 24118 3 pcmcia,yenta_socket,rsrc_nonstatic
evdev 7352 20
nls_base 6361 6 nls_utf8,nls_cp437,vfat,fat,udf,usbcore
ac 2192 0
battery 4998 0
rfkill 13044 5 bluetooth,thinkpad_acpi,cfg80211
nvram 5061 1 thinkpad_acpi
ext3 106518 3
jbd 37085 1 ext3
mbcache 5050 2 ext2,ext3
sha256_generic 8692 2
aes_x86_64 7340 2
aes_generic 25714 1 aes_x86_64
cbc 2539 1
dm_crypt 10507 1
dm_mod 53754 13 dm_crypt
acpi_cpufreq 5555 0
sd_mod 29777 3
crc_t10dif 1276 1 sd_mod
i915 253184 2
drm_kms_helper 20065 1 i915
ahci 32358 2
drm 142551 3 i915,drm_kms_helper
i2c_algo_bit 4225 1 i915
libata 133584 3 ata_generic,ata_piix,ahci
thermal 11674 0
processor 30231 3 acpi_cpufreq
button 4650 1 i915
scsi_mod 122117 5 usb_storage,sg,sr_mod,sd_mod,libata
i2c_core 15712 5 i2c_i801,i915,drm_kms_helper,drm,i2c_algo_bit
video 17445 1 i915
thermal_sys 11942 3 thermal,processor,video
output 1692 1 video
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages cryptsetup depends on:
ii dmsetup 2:1.02.48-2 The Linux Kernel Device Mapper use
ii libc6 2.11.2-2 Embedded GNU C Library: Shared lib
ii libdevmapper1.02.1 2:1.02.48-2 The Linux Kernel Device Mapper use
ii libpopt0 1.16-1 lib for parsing cmdline parameters
ii libuuid1 2.17.2-3.1 Universally Unique ID library
cryptsetup recommends no packages.
Versions of packages cryptsetup suggests:
ii busybox 1:1.15.3-1 Tiny utilities for small and embed
ii dosfstools 3.0.9-1 utilities for making and checking
ii initramfs-tools [linux-initra 0.97.2 tools for generating an initramfs
ii udev 160-1 /dev/ and hotplug management daemo
-- no debconf information
More information about the pkg-cryptsetup-devel
mailing list