portals_opt="--portals=$PORTALS"
fi
+if [ "$LUSTRE" ]; then
+ lustre_opt="--lustre=$LUSTRE"
+fi
+
[ -x $LCONF ] || chmod a+rx $LCONF
sh $mkconfig $config || exit 1
-${LCONF} $portals_opt --reformat --gdb $config || exit 2
+${LCONF} $portals_opt $lustre_opt --reformat --gdb $config || exit 2
portals_opt="--portals=$PORTALS"
fi
+if [ "$LUSTRE" ]; then
+ lustre_opt="--lustre=$LUSTRE"
+fi
+
if [ ! -f $config ]; then
sh $mkconfig $config || exit 1
fi
sync; sleep 2; sync
-${LCONF} $portals_opt --cleanup --dump $TMP/debug $config
+${LCONF} $portals_opt $lustre_opt --cleanup --dump $TMP/debug $config
rc=$?
BUSY=`dmesg | grep -i destruct`
if [ "$BUSY" ]; then
portals_opt="--portals=$PORTALS"
fi
+if [ "$LUSTRE" ]; then
+ lustre_opt="--lustre=$LUSTRE"
+fi
+
if [ ! -f $config -o $mkconfig -nt $config ]; then
sh $mkconfig $config || exit 1
fi
-${LCONF} $portals_opt --gdb $config || exit 2
+${LCONF} $portals_opt $lustre_opt --gdb $config || exit 2