| View previous topic :: View next topic |
| Author |
Message |
christianbarth n00b

Joined: 10 Jun 2005 Posts: 2 Location: Karlsruhe- Germany
|
Posted: Fri Jun 17, 2005 10:50 pm Post subject: Problem Solved |
|
|
I recently r-emerged baselayout (same version) and now everything is working fine
 |
|
| Back to top |
|
 |
tfh n00b


Joined: 03 Aug 2004 Posts: 59 Location: AFAD
|
Posted: Mon Jun 20, 2005 8:50 am Post subject: |
|
|
Hello all, this new baselayout seems very interesting.
I actualy use encryption with dm_crypt on an headless machine, so typing in a passphrase is not possible.
Right now i store my key on a cdrom, that way if my comp is booted up without the cdrom in then my custom init script won't find the keyfile and won't mount the encrypted partition.
Plus regarding lawenforcement it's better to not even know the key. That way you can't give it up :p.
So does anyone know if it's possible to store the key on an external media with the new baselayout ?
tfh _________________ tfh
GPG Key:0x960AAEF2
Key Fingerprint: 6763 E0E0 29AC A928 2612 4B14 15FE 6A45 960A AEF2 |
|
| Back to top |
|
 |
Nimo Tux's lil' helper

Joined: 23 Nov 2003 Posts: 107
|
Posted: Sat Jun 25, 2005 6:47 pm Post subject: |
|
|
I've got swap encrypting working as it should using normal sysvinit, but when using initng "swapon -s" gives no output. What should I do to enable it in initng? _________________ //Nimo |
|
| Back to top |
|
 |
kmbarr n00b

Joined: 14 Sep 2004 Posts: 10
|
Posted: Fri Jul 01, 2005 2:26 pm Post subject: No Device Appearing in /dev/mapper |
|
|
I just did a fresh build last week using the 2.6.11-gentoo-r11 stage 3 build and was having the same problem as christianbarth, all the required packages were installed with the latest versions, my /etc/conf.d/cryptfs and /etc/fstab files were updated [very similar to Christian's], but the device was not getting built in /dev/mapper. I could build the device manually with cryptsetup, mkswap, and swapon and it would work.
Following Christian's advice, I re-emerged baselayout [and cryptsetup while I was at it]. This left me with 40 files in /etc that needed to be updated; so the next step was `etc-udpate`. I had to work through the files manually --most of the files could be replaced with the new versions, but in a few cases this would've overwritten important configuration infomration. Thanks for pointing me the right direction, Christian.
I think the critical issues were in /etc/init.d/localmount and /etc/init.d/checkfs...a number of other scripts in /etc did not appear to be the latest version [besides a lot of changes to 40 files, many of the existing files carried 2004 copyright dates], even though emerge reported that I was re-emerging the same version of baselayout. I think this is a problem with the current 2005.0 builds.
(edit) It looks like a recommendation to upgrade baselayout has been added in the appropriate place in the documentation. |
|
| Back to top |
|
 |
Massimo B. Veteran


Joined: 09 Feb 2005 Posts: 1059 Location: PB, Germany
|
|
| Back to top |
|
 |
lirel n00b

Joined: 20 Jan 2007 Posts: 1
|
Posted: Sat Jan 20, 2007 1:52 pm Post subject: Re: Problem: no swap after encryption |
|
|
| christianbarth wrote: | I tried to encrypt my swap, but something is still wrong. I added the descriped kernel-options:
--*snip*--
Finally my /etc/conf.d/cryptfs:
| Code: | cat /etc/conf.d/cryptfs
# /etc/conf.d/cryptfs
# $Header: /var/cvsroot/gentoo-x86/sys-fs/cryptsetup/files/cryptfs.confd,v 1.2 2005/05/21 06:10:25 vapier Exp $
#--*snip*--
# If no makefs is given then mkswap will be assumed
swap=cryptswap
source='/dev/hda2'
|
--*snip*--
Thx Christian |
you should correct this like(crypt[dash]swap):
| Code: | nano -w /etc/conf.d/cryptfs
swap=crypt-swap
source='/dev/hda2'
|
regards lirel |
|
| Back to top |
|
 |
|