Changeset 2580


Ignore:
Timestamp:
Feb 12, 2010, 5:12:18 PM (9 years ago)
Author:
bruno
Message:
  • When using excludevs= also exclude from mountlist the devices mentioned. Fix #393.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.9/mindi/rootfs/sbin/init

    r2564 r2580  
    404404        rm -f /tmp/restorevgs
    405405        for d in $MINDI_EXCLUDE_DEVS ; do
    406             echo " == $d"
     406            echo "LVM exclusion == $d"
    407407            EXCLUDE_VGS=`grep " $d" /tmp/i-want-my-lvm | grep vgcreate | awk '{print $4}'`
    408408            vg=`echo $EXCLUDE_VGS | sed "s/ /|/g"`
     
    746746if [ "`grep -i excludedevs /proc/cmdline`" ]; then
    747747    export MINDI_EXCLUDE_DEVS="`cat /proc/cmdline | sed 's~.*excludedevs=\"\(.*\)\".*~\1~'` mondonone"
     748    for d in $MINDI_EXCLUDE_DEVS ; do
     749        echo "Mountlist exclusion == $d"
     750        perl -i -ne 'print $_ unless m~$d~' /tmp/mountlist.txt
     751    done
    748752else
    749753    export MINDI_EXCLUDE_DEVS=" "
     
    821825RstHW
    822826echo "Starting potential Raid/Multipath ..."
     827[ -e "/tmp/mountlist.txt" ] && cp -f /tmp/mountlist.txt /tmp/mountlist.original
    823828PauseForRaids
    824829StartRaids
     
    836841    cp -af /dev/md2 /dev/md/2 2> /dev/null
    837842fi
    838 [ -e "/tmp/mountlist.txt" ] && cp -f /tmp/mountlist.txt /tmp/mountlist.original
    839843
    840844if ! [ "`grep -i "pxe" /proc/cmdline`" ] ; then
Note: See TracChangeset for help on using the changeset viewer.