I have encrypted system and swap partitions on (Linux soft) raid1.
In Debian 12, I had to add the following empty dummy files to stop systemd from trying to "reenable" the encrypted partitions that are already mounted from the initramfs:
touch "/etc/systemd/system/systemd-cryptsetup@md1_crypt.service"
touch "/etc/systemd/system/systemd-cryptsetup@md2_crypt.service"
md2_crypt is the swap device, which started automatically just fine in Debian 12.
After upgrading to Debian 13, swap is no longer enabled automatically after boot.
I thought maybe the dummy file workaround is no longer needed, so I renamed /etc/systemd/system/systemd-cryptsetup@md2_crypt.service.
Now swap is automatically enabled after boot, but I get the following error message during boot:
systemd[1]: Failed to mount run-systemd-cryptsetup-keydev\x2dmd2_crypt.mount - /run/systemd/cryptsetup/keydev-md2_crypt.
I have no idea what this is trying to tell me.
What is the "proper" way of using encrypted root and swap partitions in Debian 13 and not have systemd whine about anything?
cryptsetup-initramfs and systemd-cryptsetup are installed.
Cheers and still a very nice christmas everyone...
In Debian 12, I had to add the following empty dummy files to stop systemd from trying to "reenable" the encrypted partitions that are already mounted from the initramfs:
touch "/etc/systemd/system/systemd-cryptsetup@md1_crypt.service"
touch "/etc/systemd/system/systemd-cryptsetup@md2_crypt.service"
md2_crypt is the swap device, which started automatically just fine in Debian 12.
After upgrading to Debian 13, swap is no longer enabled automatically after boot.
I thought maybe the dummy file workaround is no longer needed, so I renamed /etc/systemd/system/systemd-cryptsetup@md2_crypt.service.
Now swap is automatically enabled after boot, but I get the following error message during boot:
systemd[1]: Failed to mount run-systemd-cryptsetup-keydev\x2dmd2_crypt.mount - /run/systemd/cryptsetup/keydev-md2_crypt.
I have no idea what this is trying to tell me.
What is the "proper" way of using encrypted root and swap partitions in Debian 13 and not have systemd whine about anything?
cryptsetup-initramfs and systemd-cryptsetup are installed.
Cheers and still a very nice christmas everyone...
Statistics: Posted by wuckiwuck — 2025-12-25 20:29