[systemd-devel] Question about encrypted devices.

Mathieu Cassard cassard.mathieu at gmail.com
Tue Mar 19 03:55:21 PDT 2013


Hello,
I'm a quit new user of systemd. Hope this is the right place to ask for help...

I am trying to mount an encrypted disk at boot.
I am working with a customized distribution & kernel (using ptxdist).

In my fstab :
/dev/mapper/c1  /opt    ext4    defaults        0 0

In my crypttab
c1    /dev/opt  none    luks

And during boot the system timeout waiting for dev-mapper-c1.device :

[...]
Jan 01 00:00:09 TestBox systemd[1]: Mounted /var/log directory.
Jan 01 00:00:11 TestBox systemd-cryptsetup[93]: Set cipher aes, mode xts-plain
Jan 01 00:00:13 TestBox systemd[1]: Started Cryptography Setup for c1.
Jan 01 00:01:35 TestBox systemd[1]: Job dev-mapper-c1.device/start timed out.
Jan 01 00:01:35 TestBox systemd[1]: Timed out waiting for device dev-mapper-c1
Jan 01 00:01:35 TestBox systemd-journal[46]: Forwarding to syslog missed 34 me
Jan 01 00:01:35 TestBox systemd[1]: Dependency failed for /opt.
[...]

If I comment c1 in the fstab, the sytem boot ok, /dev/mapper/c1 is
present and I can manually do :
mount /dev/mapper/c1 /opt
[   84.052445] EXT4-fs (dm-0): recovery complete
[   84.058232] EXT4-fs (dm-0): mounted filesystem with ordered data
mode. Opts: (null)

udevadm info  /dev/mapper/c1
P: /devices/virtual/block/dm-0
N: dm-0
E: DEVNAME=/dev/dm-0
E: DEVPATH=/devices/virtual/block/dm-0
E: DEVTYPE=disk
E: MAJOR=254
E: MINOR=0
E: SUBSYSTEM=block
E: TAGS=:systemd:
E: UDEV_LOG=3
E: USEC_INITIALIZED=45372516

Any idea why systemd keep waiting for /dev/mapper/c1 ?  Or where to
start looking ?


Thank you !

--
Mathieu Cassard


More information about the systemd-devel mailing list