Changeset 3203 in MondoRescue
- Timestamp:
- Dec 6, 2013, 3:40:40 PM (11 years ago)
- Location:
- branches/3.2/mindi/rootfs
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.2/mindi/rootfs/etc/init.d/rcS
r3200 r3203 511 511 for l in $EXCLUDE_LVS; do 512 512 # FIXME: Should search for all possible device names here 513 grep -Ev "/dev/$v/$l" /tmp/mountlist.txt > /tmp/mountlist.txt.new 514 grep -Ev "/dev/mapper/${v}-$l" /tmp/mountlist.txt.new > /tmp/mountlist.txt 513 if [ -f "/tmp/mountlist.txt" ]; then 514 grep -Ev "/dev/$v/$l" /tmp/mountlist.txt > /tmp/mountlist.txt.new 515 grep -Ev "/dev/mapper/${v}-$l" /tmp/mountlist.txt.new > /tmp/mountlist.txt 516 fi 515 517 done 516 518 done … … 577 579 return; 578 580 fi 579 if [ "`grep mpath /tmp/mountlist.txt`" ]; then581 if [ -f "/tmp/mountlist.txt" ] && [ "`grep mpath /tmp/mountlist.txt`" ]; then 580 582 if [ -x /sbin/multipath ]; then 581 583 echo "Starting Mpath..." … … 602 604 fi 603 605 604 raid_devices=`grep /dev/md /tmp/mountlist.txt | cut -d' ' -f1` 606 if [ -f "/tmp/mountlist.txt" ]; then 607 raid_devices=`grep /dev/md /tmp/mountlist.txt | cut -d' ' -f1` 608 else 609 raid_devices="" 610 fi 611 605 612 if which raidstart > /dev/null 2> /dev/null ; then 606 613 for i in $raid_devices ; do … … 879 886 for d in $MINDI_EXCLUDE_DEVS ; do 880 887 echo "Mountlist exclusion == $d" 881 perl -i -ne 'print $_ unless m~$d~' /tmp/mountlist.txt 888 if [ -e "/tmp/mountlist.txt" ]; then 889 perl -i -ne 'print $_ unless m~$d~' /tmp/mountlist.txt 890 fi 882 891 done 883 892 else … … 965 974 sleep 2 966 975 #clear 967 if [ -e "/dev/md0" ] && [ ! -e "/dev/md/0" ] && [ "`grep /dev/md/ /tmp/mountlist.txt`" != "" ] ; then976 if [ -e "/dev/md0" ] && [ ! -e "/dev/md/0" ] && [ -e "/tmp/mountlist.txt" ] && [ "`grep /dev/md/ /tmp/mountlist.txt`" != "" ] ; then 968 977 LogIt "Creating /dev/md/* softlinks just in case." 1 969 978 mkdir -p /dev/md -
branches/3.2/mindi/rootfs/sbin/post-init
r2915 r3203 8 8 sleep 1 9 9 10 echo "Here is my /tmp/mountlist.txt" >> $LOGFILE 11 cat /tmp/mountlist.txt >> $LOGFILE 10 if [ -f "/tmp/mountlist.txt" ]; then 11 echo "Here is my /tmp/mountlist.txt" >> $LOGFILE 12 cat /tmp/mountlist.txt >> $LOGFILE 13 fi 12 14 13 15 iso=`grep iso /proc/cmdline`
Note:
See TracChangeset
for help on using the changeset viewer.