Lines Matching refs:to

4 How to use dm-crypt and swsusp together:
12 You know how to create or how to modify an initrd.
19 At this point you want to encrypt your swap, too. Still you want to
20 be able to suspend using swsusp. This, however, means that you
21 have to be able to either enter a passphrase or that you read
23 or an usb stick prior to resume. So you need an initrd, that sets
24 up dm-crypt and then asks swsusp to resume from the encrypted
28 a way that the swap device you suspend to/resume from has
30 within your running system. The easiest way to achieve this is
31 to always set up this swap device first with dmsetup, so that
36 Now set up your kernel to use /dev/mapper/swap0 as the default
41 Prepare your boot loader to use the initrd you will create or
50 Finally you need to create or modify your initrd. Lets assume
65 initrd that allows you to resume from encrypted swap and that
119 First we have to decide if we want to try to resume, or not.
123 Then we need to set up dmcrypt with the setup data from the
124 pcmcia flash disk. If this succeeds we need to reset the swap
125 device if we don't want to resume. The line "echo 254:0 > /sys/power/resume"
126 then attempts to resume from the first device mapper device.
127 Note that it is important to set the device in /sys/power/resume,
131 Otherwise we just remove the encrypted swap device and leave it to the
132 mini system on /dev/hda1 to set the whole crypto up (it is up to
133 you to modify this to your taste).
135 What then follows is the well known process to change the root
136 file system and continue booting from there. I prefer to unmount
137 the initrd prior to continue booting but it is up to you to modify