Changeset 2535


Ignore:
Timestamp:
Jan 8, 2010, 4:22:10 PM (10 years ago)
Author:
bruno
Message:

r3757@localhost: bruno | 2010-01-08 14:52:00 +0100

  • Better exclusion of the LVs from the mountlist at restore time if excludedevs used
File:
1 edited

Legend:

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

    r2533 r2535  
    421421                EXCLUDE_LVS=`grep " $v" /tmp/i-want-my-lvm | grep lvcreate | sed "s/^.*-n \([^ ][^ ]*\) .*$/$1/"`
    422422                for l in $EXCLUDE_LVS; do
     423                    # FIXME: Should search for all possible device names here
    423424                    grep -Ev "/dev/$v/$l" /tmp/mountlist.txt > /tmp/mountlist.txt.new
    424                     mv /tmp/mountlist.txt.new /tmp/mountlist.txt
     425                    grep -Ev "/dev/mapper/${v}-v$l" /tmp/mountlist.txt.new > /tmp/mountlist.txt
    425426                done
    426427            done
Note: See TracChangeset for help on using the changeset viewer.