Skip to contentSkip to conversation

swsusp resume from dm-crypt over lvm?

DISCUSSION David Härdeman 2 participants 3 messages Nov 24, 2005 – Nov 25, 2005

lore
Share & tools
lore
#0 lore raw

Using the ability to echo the major:minor to /sys/power/resume from an initramfs script I am able to resume from a lvm partition.

However, this doesn't seem to work if the swap partition is encrypted and setup using cryptsetup (dm-crypt over an lvm partition that is).

Is this supposed to work or is it not feasible?

Re,
David

Please CC any replies...

#1 lore raw
Quoted 7 lines · David Härdeman

Using the ability to echo the major:minor to /sys/power/resume from an initramfs script I am able to resume from a lvm partition.

However, this doesn't seem to work if the swap partition is encrypted and setup using cryptsetup (dm-crypt over an lvm partition that is).

Is this supposed to work or is it not feasible?

See Documentation/power/swsusp-dmcrypt.txt. Works for me.

Signature · 1 line
Andreas Steinmetz                       SPAMmers use [email protected]
#2 lore raw
Quoted 10 lines · Andreas Steinmetz
Quoted 7 lines · David Härdeman

Using the ability to echo the major:minor to /sys/power/resume from an initramfs script I am able to resume from a lvm partition.

However, this doesn't seem to work if the swap partition is encrypted and setup using cryptsetup (dm-crypt over an lvm partition that is).

Is this supposed to work or is it not feasible?

See Documentation/power/swsusp-dmcrypt.txt. Works for me.

Thanks, that helped...I had missed that the device must have the same major/minor when resuming as it had when suspending.

Re,
David