Whonix Wiki Download Docs News Support Tips Issues Contribute DONATE

crypttab is ignored by update-initramfs

I encrypted the disk using
cryptsetup reencrypt --encrypt /dev/sdXY
my /etc/crypttab:
root_crypt UUID=ccfd2c14-0148-4679-9e2c-626e6e044d08 none luks
my /etc/fstab:
/dev/mapper/root_crypt / ext4 defaults 0 1
I also tried to change /etc/default/grub like this:
GRUB_CMDLINE_LINUX="cryptdevice=UUID=ccfd2c14-0148-4679-9e2c-626e6e044d08:root_crypt root=/dev/mapper/root_crypt "
After these files edited i used:

update-grub
grub-install /dev/sda
update-initramfs -u -k all

initramfs does not mount luks partition automatically after booting.
i should do it manually via
cryptsetup open /dev/sda1 cryptroot
then it does not mount manually using
mount /dev/mapper/cryptroot /root
but works for
/init
and system starts successfully after double
exec switch_root /root /sbin/init
do you have any advice? what am i doing wrong?

I am unable to attach screenshots or links, so these are console recognized listing:

GRUB loading . .
Welcome to GRUB?
Attempting to decrypt master key...
Enter passphrase for hd0,msdosl (ccfd2cl4014846799e2c626e6e044d08):
Gaue up waiting for root file system deuice. Common problems:
- Boot args (cat zproczcmdline)
- Check rootdelay= (did the system wait long enough?)
- Missing modules (cat zproczmodules; Is zdeu)
ALERT? UUID=26ada0c0-1165-4O98-884d-aafd2220c2c6 does not exist. Dropping to a shell?
BusyBox ul.30.1 (Debian 1:1.30.l-6+b3) built-in shell (ash)
Enter 'help' for a list of built-in commands.
(initramfs) blkid
zdeuzsdal: UUID="ccfd2cl4-0148-4679-9e2c-626e6e044d08'’ TYPE=”crypto_LUKS” PARTUUID="41414141-01 (initramfs) Is
bin	cryptroot	etc	lib	proc	run	scripts	tmp	uar
conf	deu	in it	1ib64	root	sbin	sys	usr
(initramfs) Is cryptrootz
crypttab
(initramfs) cat zcryptrootzcrypttab
(initramfs) mount
none on z type rootfs (rw)
sysfs on zsys type sysfs (rw,nosuid,nodeu,noexec,relatime)
proc on zproc type proc (rw,nosuid,nodeu,noexec,relatime)
udeu on zdeu type deutmpfs (rw,nosuid,relatime,size=996060k,nr_inodes=248015,mode=755)
deupts on zdeuzpts type deupts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=O00) tmpfs on zrun type tmpfs (rw,nosuid,nodeu,noexec,relatime,size=203056k,mode=755) 
(initramfs)
Gaue up waiting for root file system deuice. Common problems:
- Boot args (cat zproczcmd1ine)
- Check rootdelay= (did the system wait long enough?)
- Mi ssing modules (cat zproczmodules; Is zdeu)
ALERT! UUID=Z6ada0c0-1165-4098-884d-aafdZZZ0cZc6 does not exist. Dropping to a shell?
BusyBox ul.30.1 (Debian 1:1.30.l-6*b3) built-in shell (ash) Enter 'help* for a list of built-in commands.
(initramfs) cryptsetup open zdeuzsdal cryptroot
Enter passphrase for zdeuzsdal:
(initramfs) mount zdeuzmapperzcryptroot zroot
mount: mounting zdeuzmapperzcryptroot on zroot failed: No such file or directory (initramfs) zinit
mount: mounting sysfs on zsys failed: Deuice or resource busy mount: mounting udeu on zdeu failed: Deuice or resource busy mkdir: can't create directory 'zdeuzpts': File exists BusyBox ul.30.1 (Debian 1:1.30.l-6*b3) multi-call binary.
Usage: run-init t-d CAP,CAP...] (-nJ (-c CONSOLE.DEU] NEU_ROOT NEU_INIT [ARGS]
Free initramfs and switch to another root fs: chroot to NEU_ROOT, delete all in z, moue NEU_ROOT to z, execute NEU_INIT. PID must be 1. NEU_ROOT must be a mountpoint.
—c DEU Reopen stdio to DEU after switch
-d CAPS Drop capabilities
-n Dry run (initramfs) mount none on z type rootfs (rw) sysfs on zrootzsys type sysfs (rw,nosuid,nodeu,noexec,relatime) proc on zproc type proc (rw,nosuid,nodeu,noexec,relatime)
udeu on zrootzdeu type deutmpfs (rw,nosuid,relatime,size=996O60k,nr_inodes=Z49015,mode=755) deupts on zrootzdeuzpts type deupts (rw,nosuid,noexec,relatime,gid=5,mode=6Z0,ptmxmode=000) tmpfs on zrun type tmpfs (rw,nosuid,nodeu,noexec,relatime,size=Z03056k,mode=755) proc on zrootzproc type proc (rw,nosuid,nodeu,noexec,re 1atime)
deupts on zrootzdeuzpts type deupts (rw,nosuid,noexec,relatime,gid=5,mode=6Z0,ptmxmode=000) tmpfs on zrootzrun type tmpfs (rw,nosuid,nodeu,noexec,re 1atime,size=Z03056k,mode=755) zdeuzmapperzcryptroot on zroot type ext4 (ro,relatime) 
(initramfs)

Most likely resolving this as per https://www.whonix.org/wiki/Free_Support_Principle will be required / Generic Bug Reproduction.