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

Bug#476388: partman-auto-crypto: Allow preseeding of the skip_erase flag



On Thu, Apr 17, 2008 at 02:25:31PM +0100, Colin Watson wrote:
> On Wed, Apr 16, 2008 at 01:22:11PM +0200, Jérémy Bobbio wrote:
> > This wishlist is extracted for T. Nan's request [1] posted on the
> > debian-boot mailling-list.
> > 
> > partman-auto-crypto should define a debconf question (for preseeding
> > only) that would make it define the skip_erase flag for the encrypted
> > partition.  This would allow one to bypass the lengthly erasing step
> > when doing automated installations.
> 
> Surely this is what partitioning recipes are for. Why not just put:
> 
>   skip_erase{ }
> 
> ... in the recipe? (If that doesn't work, then I think it should be made
> to.)

No actual recipes are actually used when using LVM or crypto auto
partitioning: an "enveloppe" is created by auto_lvm_prepare() which
contains enough space to hold every partitions tagged "lvmok" in the
recipe.

Its this enveloppe partition that is turned, when using crypto, into an
encrypted partition and that is erased.  So there is no user accessible
recipes where one could actually specify such flag…

Maybe we should change the whole recipe format to add support for
stacked block devices, but that's a lot more work to do. :)

Cheers,
-- 
Jérémy Bobbio                        .''`. 
lunar@debian.org                    : :Ⓐ  :  # apt-get install anarchism
                                    `. `'` 
                                      `-   

Attachment: signature.asc
Description: Digital signature


Reply to: