Dear Rich,

Thank you very much for reporting this issue.

analyze-my-lvm is in fact in /usr/lib/mindi, not in /usr/sbin. The
attached patch changes mindi so that it looks in /usr/lib/mindi, which
fixes the issue.

Bruno: Everything in the path in Debian needs a manpage, so I can't
really put analyze-my-lvm in /usr/sbin. For other distributions it might
also be nice to have it in /usr/lib/mindi because it really is for mindi
and mindi only, no need to put it in the path, it just adds clutter. Do
you agree? Are you ok for me to commit the attached patch to SVN?

Regards,
Andree
-- 
Andree Leidenfrost
Sydney - Australia

--- mindi.orig	2006-02-11 21:52:34.000000000 +1100
+++ mindi	2006-02-11 21:54:15.000000000 +1100
@@ -1311,7 +1311,7 @@
 	
 	if [ -d "/proc/lvm" ] || [ -d "/dev/mapper" ]; then
 	echo -en "\rAnalyzing LVM...\r"
-	all_partitions=`$MINDI_SBIN/analyze-my-lvm | fgrep ">>>" | cut -d' ' -f2-32`
+	all_partitions=`$MINDI_LIB/analyze-my-lvm | fgrep ">>>" | cut -d' ' -f2-32`
 	fi
 	all_partitions="$all_partitions `ListAllPartitions 2> /dev/null`"
 #    echo "all partitions = $all_partitions" > /dev/stderr
@@ -2207,8 +2207,8 @@
 	cp -f $TMP_ROOT/mountlist.txt $minidir_root/$noof_disks/tmp/mountlist.txt || Die "Cannot copy mountlist.txt from $TMP_ROOT to data disk"
 	cp -f $TMP_ROOT/mountlist.txt $CACHE_LOC
 	[ "`DidMondoCallMe`" ] && cp -f $minidir_root/$noof_disks/tmp/mountlist.txt $MONDO_TMP/.
-	[ -d "/proc/lvm" ] && $MINDI_SBIN/analyze-my-lvm > $minidir_root/$noof_disks/tmp/i-want-my-lvm
-	[ -d "/dev/mapper" ] && $MINDI_SBIN/analyze-my-lvm > $minidir_root/$noof_disks/tmp/i-want-my-lvm
+	[ -d "/proc/lvm" ] && $MINDI_LIB/analyze-my-lvm > $minidir_root/$noof_disks/tmp/i-want-my-lvm
+	[ -d "/dev/mapper" ] && $MINDI_LIB/analyze-my-lvm > $minidir_root/$noof_disks/tmp/i-want-my-lvm
 	cat $minidir_root/$noof_disks/tmp/mountlist.txt >> $LOGFILE
 	ZipMinidirsIntoTarballs $minidir_root $tardir $noof_disks
 	CreateDataDiskImagesFromTarballs $tardir $imagesdir $noof_disks

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to