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

Bug#229328: Untested patch



tags 229328 + patch
thanks 

Hi,

Attached is a patch for this issue. It's relatively straightforward, and
I've tested it's behaviour external to an installation environment.

Unfortunately, I've found it really hard to build a new CD image with the
updated udeb, and rather than continue to head-but my keyboard, I thought
I'd get the patch out there instead so it can hopefully make it into the
next beta/release candidate.

regards

Andrew
--- lvmcfg-0.15/lvmcfg.sh       2003-07-12 05:34:48.000000000 +1000
+++ lvmcfg-0.15.1/lvmcfg.sh     2004-02-04 23:38:51.000000000 +1100
@@ -620,8 +620,10 @@
 done
  
 # install lvm-tools in /target if needed
-set -- `vgdisplay -v | grep 'NOT active' | wc -l`
-[ $1 -gt 0 ] && apt-install lvm10
+#229328 #set -- `vgdisplay -v | grep 'NOT active' | wc -l`
+#229328 #[ $1 -gt 0 ] && apt-install lvm10
+# I presume we're chrooted into the base installation here...
+[ -e /proc/lvm/VGs ] && set -- `ls /proc/lvm/VGs/ | wc -l` && [ $1 -gt 0 ] && apt-install lvm10
  
 exit 0

Attachment: signature.asc
Description: Digital signature


Reply to: