[Pkg-cryptsetup-devel] PATCH: cryptsetup 2:1.0.4+svn29-1 - enable swap on startup

Lubomir Host rajo at platon.sk
Sun Jun 3 14:23:15 UTC 2007


On Mon, May 28, 2007 at 03:35:59PM +0200, Jonas Meurer wrote:
> On 21/05/2007 Lubomir Host wrote:
> > Hi,
> > my encrypted swap is not enabled on startup. Simple patch follows:
> > [...]
> > Is my patch correct?
> 
> Hey Lubomir,
> 
> a rather common praxis is to add your encrypted swap device to
> /etc/fstab. this way the mount bootscripts enable the swap
> automatically.
> 
> If you have for example /dev/sda3 as encrypted swap, this might look
> like the following in your /etc/crypttab:
> 
> # <target>  <source>   <key file>   <options>
> crypt_swap  /dev/sda3  /dev/random  swap,cipher=aes-cbc-plain,size=128,hash=ripemd160

My /etc/crypttab:

crypto-swap       /dev/ibm/swap    /dev/random    swap

ibm - my Volumen Group (VG) name


> then you would add it to /etc/fstab this way:
> 
> # <file system> <mount point> <type>  <options>     <dump>  <pass>
> /dev/mapper/crypt_swap  none  swap    defaults      0       0

and my /etc/fstab:

/dev/mapper/crypto-swap    swap  swap    sw 0 0

> enabling swap is really a job for the mount script, not for cryptsetup.

You are right, but in my setup swap is not enabled on boot. Any hints?

Thanks, best regards

-- 
  ,''`.  Lubomir Host 'rajo' <rajo AT platon.sk>    ICQ #:  257322664
 : :' :  Jabber: rajo AT jabber.platon.sk      VoIP: callto://rajo207
 `. `'   WWW: http://rajo.platon.sk/  Platon Group: http://platon.sk/
   `-    GnuPG key: DC0C C7EA 55C8 B089 C41D 944A F251 A93A 2361 A82F



More information about the Pkg-cryptsetup-devel mailing list