Changeset 2354 in MondoRescue


Ignore:
Timestamp:
Aug 28, 2009, 7:10:22 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

(Backport from 2.2.9)

Location:
branches/2.2.10/mindi
Files:
2 edited

Legend:

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

    r2255 r2354  
    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.10/mindi/rootfs/sbin/init

    r2349 r2354  
    455455        return;
    456456    fi
    457     echo "Starting Mpath..."
    458     if [ -x /sbin/multipath ]; then
    459         mkdir -p /var/lib/multipath
    460         cat > /etc/multipath.conf << EOF
     457    if [ "`grep mpath /tmp/mountlist.txt`" ]; then
     458        if [ -x /sbin/multipath ]; then
     459            echo "Starting Mpath..."
     460            mkdir -p /var/lib/multipath
     461            cat > /etc/multipath.conf << EOF
    461462defaults {
    462463        user_friendly_names yes
    463464}
    464465EOF
    465         /sbin/multipath -v 0
    466         if [ -x /sbin/kpartx ]; then
    467             /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
     466            /sbin/multipath -v 0
     467            if [ -x /sbin/kpartx ]; then
     468                /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
     469            fi
    468470        fi
    469471    fi
     
    472474StartRaids() {
    473475    local raid_devices i
     476
     477    if [ "`grep -i noraid /proc/cmdline`" ]; then
     478        return;
     479    fi
    474480
    475481    raid_devices=`grep /dev/md /tmp/mountlist.txt | cut -d' ' -f1`
     
    484490        done
    485491    elif which mdrun > /dev/null 2> /dev/null ; then
     492        if [ "`grep -i nomd /proc/cmdline`" ]; then
     493            return;
     494        fi
    486495        LogIt "Running 'mdrun'" 1
    487496        mdrun
    488497    elif which mdadm > /dev/null 2> /dev/null ; then
     498        if [ "`grep -i nomd /proc/cmdline`" ]; then
     499            return;
     500        fi
    489501        LogIt "Running 'mdadm'" 1
    490502        for i in $raid_devices ; do
Note: See TracChangeset for help on using the changeset viewer.