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.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/953875

Title:
  Encrypted swap no longer mounted at bootup

To manage notifications about this bug go to:
https://bugs.launchpad.net/ecryptfs/+bug/953875/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to