[Debian-eeepc-devel] Custom resume's script

Svend Sorensen ssorensen at gmail.com
Mon Jul 21 17:29:09 UTC 2008


On Thu, Jul 17, 2008 at 11:40 PM, Damyan Ivanov wrote:
> -=| Svend Sorensen, Thu, Jul 17, 2008 at 10:43:07AM -0700 |=-
>> On Wed, Jul 16, 2008 at 7:50 AM, InSa wrote:
>> >
>> > So the question is: where do I put custom resume's script?
>>
>> Put a script under /etc/pm/sleep.d. (See man pm-action). For example,
>> I use the following script to unmount a drive during suspend, and
>> remount it on resume.
>> ...
>>         thaw|resume)
>>                 sleep 10
>>                 cryptdisks_start cryptsd
>
> It would be interesting to know how do you manage to enter the
> passphrase?

I am using a key file on the root partition. The /etc/crypttab entry is:

cryptsd /dev/disk/by-uuid/3abd4816-8cce-4aa7-87bc-d008c6248ac9
/root/cryptsd.keyfile luks

The root partition is encrypted as well, and it requires a passphrase
during boot.

(Unmounting the disk is just a workaround because USB_SUSPEND doesn't
work properly for me with the 2.6.25-7 kernel.)



More information about the Debian-eeepc-devel mailing list