After upgrading to fedora 15 my encrypted swap is not set up by systemd which calls itself a drop-in replacement for SysV scripts. Version-Release number of selected component (if applicable): systemd-26-2.fc15.x86_64 How reproducible: Have F14 box with encrypted swap Upgrade to F15 using preupgrade. Once booted into upgraded box notice lack of swap. Actual results: No swap Expected results: Encrypted swap Additional info: ls -l /dev/mapper/ total 0 crw------- 1 root root 10, 236 Jun 5 08:50 control lrwxrwxrwx 1 root root 7 Jun 5 08:50 my_vg-homelv -> ../dm-0 lrwxrwxrwx 1 root root 7 Jun 5 08:50 my_vg-mythlv -> ../dm-3 lrwxrwxrwx 1 root root 7 Jun 5 08:50 my_vg-rootlv -> ../dm-5 lrwxrwxrwx 1 root root 7 Jun 5 08:50 my_vg-srclv -> ../dm-2 lrwxrwxrwx 1 root root 7 Jun 5 08:50 my_vg-usrlv -> ../dm-4 lrwxrwxrwx 1 root root 7 Jun 5 08:50 my_vg-varlv -> ../dm-1 lrwxrwxrwx 1 root root 7 Jun 5 08:50 swap -> ../dm-6 So we do have swap dm-partition, but: # swapon -a swapon: /dev/mapper/swap: read swap header failed: Invalid argument # mkswap /dev/mapper/swap mkswap: /dev/mapper/swap: warning: don't erase bootbits sectors on whole disk. Use -f to force. Setting up swapspace version 1, size = 2097148 KiB no label, UUID=b0cfcbd1-a2a6-4f57-a64a-f4f1f76054f8 # swapon -a So why isn't this done like it used to be? # cat /etc/crypttab swap /dev/sda2 /dev/urandom swap,cipher=aes-cbc-essiv:sha256,size=256 So the partition is clearly marked as to be swap after encrypting. Also fstab shows the swap as swap. This worked very well in F14. F15 breaks this functionality. Also, in dmesg: <30>systemd-cryptsetup[2279]: Set cipher aes, mode cbc-essiv:sha256, key size 256 bits for device /dev/sda2. <28>systemd[1]: Job dev-mapper-swap.device/start timed out. <29>systemd[1]: Job dev-mapper-swap.swap/start failed with result 'dependency'. <29>systemd[1]: Job dev-mapper-swap.device/start failed with result 'timeout'. Timed out for what? Dependency on what? LVM was already up, usr, var etc fscked... Also see https://bugzilla.redhat.com/show_bug.cgi?id=710839
This should be fixed since a while. Closing. Feel free to reopen if it continues to exist with current systemd.
If the info at https://bugzilla.redhat.com/show_bug.cgi?id=759402 is about a different issue then you are right. It has been a year and encrypted swap still doesn't work reliably so my experience is different.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.