Package: debian-installer
Version: testing
Severity: normal
Tags: d-i
X-Debbugs-Cc: therealmr...@duck.com

Dear Maintainer,

   * What led up to the situation?

(Possible dupe of 1092968)

I installed Debian testing from a live CD.

   * What exactly did you do (or not do) that was effective (or
     ineffective)?

During the installation process, I set up 2 encrypted partitions:
- btrfs on LVM on LUKS for the root file system
- swap on an encrypted partition with a random key

   * What was the outcome of this action?

The system took an extremely long time to boot, which I eventually traced down 
to a timeout (~30 seconds) because the encrypted swap device did not exist
(i.e., cryptsetup never opened it, so there was no entry in /dev/mapper/).

The encrypted partition for the root file system correctly prompted for the 
passphrase when booting, and worked completely normally.

The installer *did* create the correct entries in /etc/crypttab:

    nvme0n1p7_crypt /dev/nvme0n1p7 /dev/urandom 
cipher=aes-xts-plain64,size=256,swap,discard,x-initrd.attach

and /etc/fstab:

   /dev/mapper/nvme0n1p7_crypt    none    swap    sw    0   0

However, the installer did *not* install the required systemd-cryptsetup 
package. Once this package was installed, the problem immediately went away.

   * What outcome did you expect instead?

systemd-cryptsetup package should be installed.

Note that this bug is similar to 1092968, though it differs from it in that the 
crypttab entry was added by the installer itself, not the user later. 
I am quite puzzled how the resulting system was able to decrypt one partition, 
but not the other.



-- System Information:
Debian Release: trixie/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 6.12.6-amd64 (SMP w/32 CPU threads; PREEMPT)
Kernel taint flags: TAINT_WARN
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Reply via email to