ecryptfs-setup-swap fails when activating swap
Bug #1886723 reported by
Alberto Pianon
This bug affects 4 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
eCryptfs |
New
|
Undecided
|
Unassigned | ||
ecryptfs-utils (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
ecryptfs-setup-swap fails when activating swap at the end, giving the following error message:
swapon: cannot open /dev/mapper/
However, after a reboot, encrypted swap works.
This happens because cryptsetup service works slightly differently now, and, after modifying /etc/crypttab, it is required to call "systemctl daemon-reload" before restarting cryptsetup service at the end of ecryptfs-setup-swap script.
SOLUTION:
add "systemctl daemon-reload" before "systemctl restart cryptsetup.target"
To post a comment you must log in.
I created a patch for the ubuntu package. It must be applied after existing swapfile- support. patch