Package: partman-lvm Severity: wishlist Hi, Here are a few code fragments that allow the software RAID /dev/md/ partitions to be marked up as LVM PV's
patch fragments generated from debian-installer/packages/partman/partman-lvm/ Index: choose_method/lvm/choices =================================================================== --- choose_method/lvm/choices (revision 22848) +++ choose_method/lvm/choices (working copy) @@ -8,6 +8,9 @@ cd $dev lvm=no +if cat $dev/model | grep "Software RAID device" >/dev/null ; then + lvm=yes +fi open_dialog VALID_FLAGS $id while { read_line flag; [ "$flag" ]; }; do if [ "$flag" = lvm ]; then Index: init.d/lvm =================================================================== --- init.d/lvm (revision 22848) +++ init.d/lvm (working copy) @@ -32,6 +32,9 @@ for id in $partitions; do lvm=no + if pvdisplay $(cat $dev/device) >/dev/null 2>&1 ; then + lvm=yes + fi open_dialog GET_FLAGS $id while { read_line flag; [ "$flag" ]; }; do if [ "$flag" = lvm ]; then This solves "half the battle" of LVM on Software RAID bug #245704 tracks the other "half" of the problem(making lvmcfg read the lvm "markers" we allow to be set here). Alex Owen -- System Information: Debian Release: 3.1 APT prefers testing APT policy: (400, 'testing'), (300, 'unstable') Architecture: i386 (i686) Kernel: Linux 2.4.27-1-k7 Locale: LANG=C, LC_CTYPE=C -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]