You are not logged in.

#1 2023-05-31 07:11:59

shiveringpeach
Member
From: Germany
Registered: 2019-03-17
Posts: 5

[Fixed] linux-zen-6.3.5-1 / error messages regarding encrypted swap

Fixed with kernel 6.3.5-zen2-1-zen

Original post:

Since installing kernel 6.3.5-zen1-1-zen I get error messages during boot regarding a failed dependency (/dev/urandom) for my encrypted swap device. Swap gets enabled later during boot anyway. This behavior is new with kernel 6.3.5 and does not happen if I downgrade to 6.3.4.

(edit: with vanilla linux 6.3.5-arch1-1 the problem does not occur. It seems specific to the 6.3.5-zen1-1-zen kernel)

journalctl | egrep -i "cryptswap|cryptsetup":

Mai 31 08:39:27 arch systemd[1]: systemd 253.4-1-arch running in system mode (+PAM +AUDIT -SELINUX -APPARMOR -IMA +SMACK +SECCOMP +GCRYPT +GNUTLS +OPENSSL +ACL +BLKID +CURL +ELFUTILS +FIDO2 +IDN2 -IDN -IPTC +KMOD +LIBCRYPTSETUP +LIBFDISK +PCRE2 -PWQUALITY +P11KIT -QRENCODE +TPM2 +BZIP2 +LZ4 +XZ +ZLIB +ZSTD +BPF_FRAMEWORK +XKBCOMMON +UTMP -SYSVINIT default-hierarchy=unified)
Mai 31 08:39:27 arch systemd[1]: Created slice Cryptsetup Units Slice.
Mai 31 08:39:28 arch systemd[1]: Starting Cryptography Setup for cryptswap...
Mai 31 08:39:28 arch systemd-cryptsetup[325]: Set cipher aes, mode xts-plain64, key size 256 bits for device /dev/disk/by-id/ata-CT1000MX500SSD1_<SERIALNUMBER>-part2.
Mai 31 08:39:28 arch systemd-cryptsetup[325]: device-mapper: reload ioctl on cryptswap (254:0) failed: No such file or directory
Mai 31 08:39:28 arch systemd-cryptsetup[325]: Failed to activate with key file '/dev/urandom': No such device
Mai 31 08:39:28 arch systemd[1]: systemd-cryptsetup@cryptswap.service: Main process exited, code=exited, status=1/FAILURE
Mai 31 08:39:28 arch systemd[1]: systemd-cryptsetup@cryptswap.service: Failed with result 'exit-code'.
Mai 31 08:39:28 arch systemd[1]: Failed to start Cryptography Setup for cryptswap.
Mai 31 08:39:28 arch systemd[1]: Dependency failed for /dev/mapper/cryptswap.
Mai 31 08:39:28 arch systemd[1]: Dependency failed for /dev/mapper/cryptswap.
Mai 31 08:39:28 arch systemd[1]: dev-mapper-cryptswap.swap: Job dev-mapper-cryptswap.swap/start failed with result 'dependency'.
Mai 31 08:39:28 arch systemd[1]: dev-mapper-cryptswap.device: Job dev-mapper-cryptswap.device/start failed with result 'dependency'.
Mai 31 08:39:28 arch systemd[1]: cryptsetup.target: Job cryptsetup.target/start failed with result 'dependency'.
Mai 31 08:39:28 arch systemd[1]: Reached target Block Device Preparation for /dev/mapper/cryptswap.
Mai 31 08:39:28 arch systemd[1]: Stopped target Block Device Preparation for /dev/mapper/cryptswap.
Mai 31 08:39:28 arch systemd-cryptsetup[358]: Set cipher aes, mode xts-plain64, key size 512 bits for device /dev/disk/by-id/ata-TOSHIBA_DT01ACA100_<SERIALNUMBER>-part1.
Mai 31 08:39:28 arch systemd[1]: Starting Cryptography Setup for cryptswap...
Mai 31 08:39:28 arch systemd-cryptsetup[526]: Set cipher aes, mode xts-plain64, key size 256 bits for device /dev/disk/by-id/ata-CT1000MX500SSD1_<SERIALNUMBER>-part2.
Mai 31 08:39:29 arch systemd-makefs[544]: LABEL=cryptswap, UUID=<UUID>
Mai 31 08:39:29 arch systemd-makefs[541]: /dev/mapper/cryptswap successfully formatted as swap (label "cryptswap", uuid <UUID>)
Mai 31 08:39:29 arch systemd[1]: Found device /dev/mapper/cryptswap.
Mai 31 08:39:29 arch systemd[1]: Finished Cryptography Setup for cryptswap.
Mai 31 08:39:29 arch systemd[1]: Reached target Block Device Preparation for /dev/mapper/cryptswap.
Mai 31 08:39:29 arch systemd[1]: Activating swap /dev/mapper/cryptswap...
Mai 31 08:39:29 arch kernel: Adding 8388604k swap on /dev/mapper/cryptswap.  Priority:-2 extents:1 across:8388604k SSFS
Mai 31 08:39:29 arch systemd[1]: Activated swap /dev/mapper/cryptswap.
Mai 31 08:40:00 arch systemd-cryptsetup[2662]: Volume cryptbackup already active.

cat /etc/crypttab:

...
cryptswap /dev/disk/by-id/ata-CT1000MX500SSD1_<SERIALNUMBER>-part2 /dev/urandom  swap,cipher=aes-xts-plain64,size=256,discard
...

cat /etc/fstab:

...
/dev/mapper/cryptswap none swap defaults 0 0
...

Last edited by shiveringpeach (2023-06-05 04:19:54)

Offline

#2 2023-06-01 20:59:04

qwer1234
Member
Registered: 2010-06-16
Posts: 10

Re: [Fixed] linux-zen-6.3.5-1 / error messages regarding encrypted swap

I have a similar problem:

Failed to start Cryptography Setup for root
and etc

Some changes were done in linux-zen 6.3.4.zen2 which make the whole system unbootable.

linux-zen 6.3.4.zen1 works fine.

Offline

Board footer

Powered by FluxBB