On Wed, July 9, 2008 10:51, Giorgos D. Pallas wrote:
> David Härdeman wrote:
>> ... (why do you have a cryptroot file by the way? It's supposed
>> to be a cryptsetup internal config file)
>
> If I understood your question well, my answer is this: I have
> /etc/initramfs-tools/conf.d/*cryptroot containing the line:
> **target=lukspace,source=/dev/hda3,key=none,lvm=vg-root*
> because I have my root partition sitting on LVM, which sits on LUKS. So,
> somehow the initrd image must know that it has to find a LUKS partition
> and ask me for its passphrase.
>
> I hope I'm not talking nonsense. When I tried to set up encrypted root
> partition, I used googling, a bit hacking and imagination. So, there is
> the possibility that an easier method eludes me.

Yes, the "correct" method would be to create a /etc/crypttab file with the
mapping for your root device. See the documentation in
/usr/share/doc/cryptsetup for details on how to do that.

Once a proper crypttab is setup, cryptsetup will automagically generate
initramfs config files for you.

-- 
David Härdeman




--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to