Changeset 2353 in MondoRescue


Ignore:
Timestamp:
Aug 28, 2009, 7:03:45 PM (15 years ago)
Author:
Bruno Cornec
Message:
  • Addition of a nomd option to avoid starting mdadm
  • mpath is now already started if there was a mpath entry in mountlist
Location:
branches/2.2.9/mindi
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.9/mindi/README.bootparam

    r2255 r2353  
    3939    Do not call the mindi-rsthw script which try to restore also your BIOSes configuration (Proliant only)
    4040
     41nomd
     42    Do not try to start mdadm support
     43
    4144nompath
    4245    Do not try to start multipath support
  • branches/2.2.9/mindi/rootfs/sbin/init

    r2346 r2353  
    445445        return;
    446446    fi
    447     echo "Starting Mpath..."
    448     if [ -x /sbin/multipath ]; then
    449         mkdir -p /var/lib/multipath
    450         cat > /etc/multipath.conf << EOF
     447    if [ "`grep mpath /tmp/mountlist.txt`" ]; then
     448        if [ -x /sbin/multipath ]; then
     449            echo "Starting Mpath..."
     450            mkdir -p /var/lib/multipath
     451            cat > /etc/multipath.conf << EOF
    451452defaults {
    452453        user_friendly_names yes
    453454}
    454455EOF
    455         /sbin/multipath -v 0
    456         if [ -x /sbin/kpartx ]; then
    457             /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
     456            /sbin/multipath -v 0
     457            if [ -x /sbin/kpartx ]; then
     458                /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
     459            fi
    458460        fi
    459461    fi
     
    462464StartRaids() {
    463465    local raid_devices i
     466
     467    if [ "`grep -i noraid /proc/cmdline`" ]; then
     468        return;
     469    fi
    464470
    465471    raid_devices=`grep /dev/md /tmp/mountlist.txt | cut -d' ' -f1`
     
    474480        done
    475481    elif which mdrun > /dev/null 2> /dev/null ; then
     482        if [ "`grep -i nomd /proc/cmdline`" ]; then
     483            return;
     484        fi
    476485        LogIt "Running 'mdrun'" 1
    477486        mdrun
    478487    elif which mdadm > /dev/null 2> /dev/null ; then
     488        if [ "`grep -i nomd /proc/cmdline`" ]; then
     489            return;
     490        fi
    479491        LogIt "Running 'mdadm'" 1
    480492        for i in $raid_devices ; do
Note: See TracChangeset for help on using the changeset viewer.