Comment 2 for bug 1175406

Revision history for this message
GeorgeAllen (glallen01) wrote : Re: installer uses /dev/dm-* in /etc/cryptswap

Maybe this will help stabilize the device names in /etc/crypttab

--- /tmp/ecryptfs-setup-swap 2013-05-01 21:06:55.750474891 -0400
+++ /usr/bin/ecryptfs-setup-swap 2013-05-01 21:58:43.249884148 -0400
@@ -161,7 +161,7 @@
                [ -e "/dev/mapper/cryptswap$i" ] || break
        done
        # Add crypttab entry
- echo "cryptswap$i $swap /dev/urandom swap,cipher=aes-cbc-essiv:sha256" >> /etc/crypttab
+ echo "cryptswap$i $(findfs UUID=$uuid) /dev/urandom swap,cipher=aes-cbc-essiv:sha256" >> /etc/crypttab

        # Add fstab entry
        echo "/dev/mapper/cryptswap$i none swap sw 0 0" >> /etc/fstab