You are not logged in.

#1 2015-12-19 04:06:00

raddecen
Member
Registered: 2015-12-19
Posts: 26

Dependency for cryptsetup fails but everything boots fine

I have a SSD and a HDD and both of them are encrypted. This is the output of lsblk

NAME   MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINT
sda      8:0    0   1.8T  0 disk  
└─data 254:1    0   1.8T  0 crypt /data
sdb      8:16   0 111.8G  0 disk  
└─arch 254:0    0 111.8G  0 crypt /
sdc      8:32   1   7.5G  0 disk  
└─sdc1   8:33   1    99M  0 part  /boot

The cryptsetup headers of sda and sdb are in a flash drive which is needed for the computer to boot. This is my fstab, crypttab and crypttab.initramfs respectively.

# /dev/mapper/arch LABEL=arch
/dev/mapper/arch	/         	ext4      	rw,noatime,data=ordered	0 1

# /dev/mapper/data LABEL=data
/dev/mapper/data	/data     	ext4      	rw,relatime,nodev,nosuid,noexec,data=ordered	    0 2

# /dev/sdd1 LABEL=boot
UUID=7B9A-8C2B      	/boot     	vfat      	rw,relatime,nodev,nosuid,noexec,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro	0 2
# <name>       <device>                                           <password>         <options>
data           /dev/disk/by-id/ata-ST2000DM001-1CH164_Z1E9FQZ2    none               luks,header=/boot/seagate.img,timeout=180
# <name>        <device>                                                                <password>      <options>
arch		/dev/disk/by-id/ata-Samsung_SSD_850_EVO_120GB_S21SNSAG402120J		none		header=/boot/samsung.img

After entering the passphrase for the SSD on which / - root is present, the tty gets flashed with messages of failed dependencies and I land into emergency mode. After pressing CTRL+D, I'm prompted for the HDD passphrase.

Even though everthing does work fine, I would like to know why this problem occurs. Oh, and this is my mkinitcpio.conf with the comments removed.

MODULES="i915"
BINARIES=""
FILES="/boot/samsung.img /boot/seagate.img"
HOOKS="base udev autodetect modconf systemd encrypt block sd-encrypt filesystems keyboard fsck"

The output of journalctl -xb and journalctl -xb -p 0..3 is here.

Last edited by raddecen (2015-12-19 05:17:57)

Offline

Board footer

Powered by FluxBB