[Bug 392818] Re: Encrypted Swap / Tux On Ice
Leszek
l.p.pryszcz at gmail.com
Sat Jul 5 17:03:00 UTC 2014
I've been also playing with ToI and encrypted swap, but it was not
working. Hibernation works ok, when I use not-encrypted swap.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to cryptsetup in Ubuntu.
https://bugs.launchpad.net/bugs/392818
Title:
Encrypted Swap / Tux On Ice
Status in “cryptsetup” package in Ubuntu:
Invalid
Bug description:
I have a custom kernel with Tux On Ice
https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/75616
after adding the scripts as shown there (tweaked to meet the tuxonice
params instead of suspend2)
the system fails to resume, the reason is when cryptroot script in
local-top is creating the swap device $FSTYPE is unknown because
tuxonice modified the swap partition to include the hibernate image,
so the system never resumes
i tweaked the script added:
if [ -z "`grep noresume /proc/cmdline`" ]; then
gv_toi_resume=1
else
gv_toi_resume=0
fi
before:
# Prepare commands
if /sbin/cryptsetup isLuks $cryptsource > /dev/null 2>&1; then
and modified the fstype check to
if [ -z "$FSTYPE" ] || [ "$FSTYPE" = "unknown" ]; then
if [ "$crypttarget" == "swap" ] && [ "$FSTYPE" == "unknown" ] && [ "$gv_toi_resume" == 1 ]; then
message "cryptsetup: toi swap ready"
else
message "cryptsetup: unknown fstype, bad password or options?"
$cryptremove
continue
fi
fi
notice crypttarget is called swap (but configuration may vary)
i just modified for my needs, but i suspect more people would have trouble with this in the future
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cryptsetup/+bug/392818/+subscriptions
More information about the foundations-bugs
mailing list