Comment 29 for bug 1153661

Revision history for this message
Sebastian Wagner (sebix) wrote :

@linux-rog: Oh, yes. I could click the button "Yes, it affects me" a few times for all the other people who complain at me.

I have written a short shell script I run every time when I need to fix this issue:

     #!/usr/bin/env bash

     mkswap /dev/sda2 -U [UUID from /etc/crypttab] -L swap
     swapon /dev/sda2
     ecryptfs-setup-swap
     swapon -s

It works, but has the disadvantage that everytime it is called, a new entry is created in both /etc/fstab and /etc/crypttab. But they do not work anyway.