|
|||||||||||
|
[RFC] Erase LVM/crypto issues and proposed partman reorg
From: Frans Pop <elendil(at)planet.nl>
Date: Mon Dec 03 2007 - 05:26:22 EST
The main issues are that the original patch:
The patch proposed by Jérémy has some good ideas and does improve things to
some extend, but the end result is still a spaghetti of interrelated
functions in weird places.
I also found that I had real problems following the patches and that
stacking major corrections on top of David's original changes is not a good
idea.
For refactoring, I propose the following changes.
I suggest we rename the functions in partman-auto to "erase" or "init"
instead of "wipe" to better match what actually happens.
For partman-crypto I have a patch that renames the existing functions to
include the crypto namespace:
I suggest we move all function libraries into /lib/partman/lib/ [1]. definitions.sh could be renamed to just base.sh. The various *_tools.sh files could be renamed to lvm-base.sh, lvm-*.sh, auto-base, etc. This would also lower the barrier to introduce additional new function libraries when that is warranted. For definitions.sh I plan to temporarily include a symlink to the current location to ease the transition. For others that is probably not necessary if uploads are coordinated. 3) Further reduce memory consumption for LVM and crypto Both partman-lvm and partman-crypto have huge sets of templates and load additional modules and library/utility udebs. As they currently are loaded by default for normal installs, they contribute heavily to D-I's memory footprint. I propose we make partman-(auto-){lvm,crypto} optional and create a new init.d script that only loads them if there is sufficient memory available. This script should probably just be part of partman-base. If this is implemented, I also do not have any real problems with depending on dmsetup-udeb for both lvm and crypto as it would no longer increase the memory usage for systems that cannot afford it. Still, it would be better if requiring dmsetup could be avoided for partman-lvm. 4) Possibly create a partman-dm-support udeb From the current patches to support erasing encrypted volumes, it looks like partman-lvm and partman-crypto may need to share some code. Moving that code into partman-base or partman-auto is IMO undesirable, so the best solution seems to be to create a new udeb for it which both depend on.
Cheers,
-- To UNSUBSCRIBE, email to debian-boot-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.orgReceived on Mon Dec 3 05:26:45 2007 This archive was generated by hypermail 2.1.8 : Wed Mar 19 2008 - 03:36:29 EDT |
||||||||||
|
|||||||||||