Comment 57 for bug 953875

Revision history for this message
sudodus (nio-wiklund) wrote :

Another alternative is not using ecryptfs-setup-swap, but using a script with the following content
-----
#!/bin/bash

swpdev=$(grep '# swap was on' /etc/fstab|cut -d ' ' -f 5)
uuid=$(cut -d ' ' -f 2 /etc/crypttab |cut -d = -f 2)
sudo mkswap -U "$uuid" "$swpdev"
sudo blkid -c /dev/null
sudo swapon -a
sudo swapon -s
-----
This way I have to wait for a loooooooooooooooong time (90 seconds), but after that I can re-create cryptswap with the script in Lubuntu Vivid i386 daily build (installed with the desktop installer). This cryptswap works only once, and must be re-created after reboot.

This is inconvenient, but indicates what can be done.

1. If the long waiting time can be avoided, things would improve.
2. If the actions of the script can be run automatically (maybe improved to be more robust), things would be even better.