Update of /cvsroot/devil-linux/build/config/etc/init.d
In directory sc8-pr-cvs12.sourceforge.net:/tmp/cvs-serv16016/config/etc/init.d
Modified Files:
mountfs
Log Message:
- new option in /etc/sysconfig/config to disable the auto start of MD and
LVM
Index: mountfs
===================================================================
RCS file: /cvsroot/devil-linux/build/config/etc/init.d/mountfs,v
retrieving revision 1.41
retrieving revision 1.42
diff -u -d -r1.41 -r1.42
--- mountfs 6 Oct 2006 15:14:33 -0000 1.41
+++ mountfs 20 Apr 2007 13:22:03 -0000 1.42
@@ -83,7 +83,7 @@
start)
# start RAID if tools and config file are installed
- if [ -x /sbin/mdadm ] ; then
+ if [ -x /sbin/mdadm ] && [ "$DISABLE_MD_AUTOSTART" != "yes" ] ; then
# check if we have all the necessary devices, otherwise create them
if [ ! -e /dev/md0 ]; then
for minor in 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
@@ -110,7 +110,7 @@
fi
# start LVM if tools are installed
- if [ -x /sbin/vgscan ] && [ -x /sbin/vgchange ]; then
+ if [ -x /sbin/vgscan ] && [ -x /sbin/vgchange ] && [ "$DISABLE_LVM_AUTOSTART" != "yes" ] ; then
echo "Starting LVM"
# if we have lvm2
|