Changeset 3286 in MondoRescue for branches/3.2/mindi/rootfs/etc/init.d/rcS


Ignore:
Timestamp:
May 3, 2014, 10:13:12 AM (6 years ago)
Author:
Bruno Cornec
Message:
  • Improve mondo-prep using mr_asprintf more (was behind other C modules). To be contiued
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.2/mindi/rootfs/etc/init.d/rcS

    r3285 r3286  
    512512        for d in $MINDI_EXCLUDE_DEVS ; do
    513513            echo "LVM exclusion == $d"
     514            # LVM: $4 to be checked if changed
    514515            EXCLUDE_VGS=`grep " $d" /tmp/i-want-my-lvm | grep vgcreate | awk '{print $4}'`
    515516            vg=`echo $EXCLUDE_VGS | sed "s/ /|/g"`
     
    526527                echo "vgcfgrestore $v" >> /tmp/restorevgs
    527528                # Remove LVs from mountlist
     529                # LVM: sed to be checked if changed
    528530                EXCLUDE_LVS=`grep " $v" /tmp/i-want-my-lvm | grep lvcreate | sed "s/^.*-n \([^ ][^ ]*\) .*$/$1/"`
    529531                for l in $EXCLUDE_LVS; do
     
    537539        done
    538540
     541        # LVM: remove #
    539542        grep -E "^#.*vgchange" /tmp/i-want-my-lvm | sed "s/^#[ ]*//" > /tmp/start-lvm
    540543        chmod +x /tmp/start-lvm
Note: See TracChangeset for help on using the changeset viewer.