Package: cryptsetup Subject: cryptsetup: Would like to use decrypt_derived with a source mapping other than that of the root filesystem Package: cryptsetup Version: 2:1.1.3-3 Severity: normal
I am encountering the same problem as already reported (and stated to be closed 15 Oct 2009) in Bug $475838 : I only have /home (sda8_crypt) and swap (sda6_crypt) encrypted, not the root filesystem. However the initramfs hooks only include the swap_crypt in the initramfs, thus I get an error, "decrypt_derived: failed to find ..." at boot time. /etc/crypttab: sda8_crypt UUID=[...] none luks sda6_crypt /dev/sda6 sda8_crypt luks,keyscript=/lib/cryptsetup/scripts/decrypt_derived To work around this issue I added an really ugly hack into /usr/share /initramfs-tools/hooks/cryptroot : Before the lines # Load the config opts and modules for each device for dev in $rootdev $resumedevs; do I added rootdev="sda8_crypt" And then run "update-initramfs -u -v" -- Package-specific info: -- /proc/cmdline BOOT_IMAGE=/vmlinuz-2.6.32-5-amd64 root=UUID=9276ef46-f34e-484a-9dca- 202e2cd20dcc ro -- /etc/fstab #[...] /dev/mapper/sda8_crypt /home/r ext4 errors=remount-ro 0 3 /dev/mapper/sda6_crypt none swap sw 0 0 -- lsmod Module Size Used by acpi_cpufreq 5555 0 cpufreq_conservative 5162 0 cpufreq_powersave 902 0 cpufreq_stats 2659 0 cpufreq_userspace 1992 0 ppdev 5030 0 lp 7462 0 sco 7209 2 bridge 39598 0 stp 1440 1 bridge bnep 9427 2 rfcomm 29581 0 l2cap 24736 6 bnep,rfcomm bluetooth 41827 6 sco,bnep,rfcomm,l2cap rfkill 13044 2 bluetooth microcode 21707 0 binfmt_misc 6431 1 fuse 50190 1 ext2 52969 1 loop 11783 0 sha256_generic 8692 4 aes_x86_64 7340 4 aes_generic 25714 1 aes_x86_64 cbc 2539 2 snd_hda_codec_realtek 235522 1 snd_hda_intel 19987 1 snd_hda_codec 54244 2 snd_hda_codec_realtek,snd_hda_intel snd_hwdep 5380 1 snd_hda_codec snd_pcm_oss 32591 0 snd_mixer_oss 12606 1 snd_pcm_oss snd_pcm 60471 3 snd_hda_intel,snd_hda_codec,snd_pcm_oss snd_seq_midi 4400 0 nouveau 353136 2 snd_rawmidi 15515 1 snd_seq_midi ttm 39986 1 nouveau snd_seq_midi_event 4628 1 snd_seq_midi drm_kms_helper 20065 1 nouveau snd_seq 42881 2 snd_seq_midi,snd_seq_midi_event drm 142551 4 nouveau,ttm,drm_kms_helper i2c_algo_bit 4225 1 nouveau snd_timer 15582 2 snd_pcm,snd_seq snd_seq_device 4493 3 snd_seq_midi,snd_rawmidi,snd_seq sg 18744 0 button 4650 1 nouveau i2c_i801 7830 0 pcspkr 1699 0 psmouse 49777 0 serio_raw 3752 0 rng_core 3006 0 i2c_core 15712 5 nouveau,drm_kms_helper,drm,i2c_algo_bit,i2c_i801 evdev 7352 11 snd 46446 13 snd_hda_codec_realtek,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_rawmidi,snd_seq,snd_timer,snd_seq_device r8169 28909 0 sr_mod 12602 2 soundcore 4598 1 snd processor 30231 1 acpi_cpufreq cdrom 29415 1 sr_mod snd_page_alloc 6249 2 snd_hda_intel,snd_pcm parport_pc 18855 1 mii 3210 1 r8169 usb_storage 39561 0 parport 27954 3 ppdev,lp,parport_pc ext4 285611 2 mbcache 5050 2 ext2,ext4 jbd2 66919 1 ext4 crc16 1319 2 l2cap,ext4 dm_crypt 10507 2 dm_mod 53754 5 dm_crypt usbhid 33260 0 hid 62841 1 usbhid sd_mod 29777 5 crc_t10dif 1276 1 sd_mod ata_generic 2983 0 uhci_hcd 18521 0 ata_piix 21012 5 thermal 11674 0 thermal_sys 11942 2 processor,thermal libata 133584 2 ata_generic,ata_piix ehci_hcd 31135 0 scsi_mod 122117 5 sg,sr_mod,usb_storage,sd_mod,libata usbcore 121959 5 usb_storage,usbhid,uhci_hcd,ehci_hcd nls_base 6361 1 usbcore -- System Information: Debian Release: squeeze/sid APT prefers testing APT policy: (800, 'testing'), (70, 'unstable') Architecture: amd64 (x86_64) Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores) Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (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 158-1 /dev/ and hotplug management daemo -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org