grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Current state of grub2 encryption support


From: phcoder
Subject: Re: Current state of grub2 encryption support
Date: Tue, 31 Mar 2009 14:44:24 +0200
User-agent: Thunderbird 2.0.0.21 (X11/20090318)

Michael Gorven wrote:
On Tuesday 31 March 2009 10:50:57 phcoder wrote:
How big is your core.img?

With the following modules (untested), 61K.
configfile sha1 biosdisk pc linux ext2 minicmd crypto aes luks sha256
You don't need to embed linux.mod to the kernel, it can very weel be loaded from encrypted partition. configfile and luks depend on normal.mod. It shouldn't be the case. configfile shouldn't be needed in this context at all.
minicmd isn't needed either
luks should be able to retrieve the password without using normal mode. Using grub_cmdline_get for retrieving password is IMO wrong. It has features like kill and yank which nobody needs when entering password. Also it adds the password to the history When I commented out the line in luks.c to retrieve the password (to remove normal.mod dependency), apply my bootmove patch with following modules:
biosdisk pc ext2 crypto aes sha256 luks sha1
I get a core.img of the size 40992 bytes. While still 9248 bytes bigger then the mbr gap (31744) it's already nearer to the goal Alternatively it's possible to embed grub in the space reserved for future AF stripes of unused key slot. The disadvantage is the need to reinstall after key change. IMO this way shouldn't be taken. But we can contact LUKS people and ask them to add embeding space for grub2. It's enough to just shift everything by 1 MiB on devices bgger then 256 MiB, and by 256 Kib on devices bigger then 64 MiB (can be overriden at format time), then make luks code look for the header at 0, 256KiB and 1 MiB





------------------------------------------------------------------------

_______________________________________________
Grub-devel mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/grub-devel


--

Regards
Vladimir 'phcoder' Serbinenko




reply via email to

[Prev in Thread] Current Thread [Next in Thread]