Changeset 3081 in MondoRescue
- Timestamp:
- Jan 25, 2013, 5:44:14 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.0/mindi/mindi
r3077 r3081 1451 1451 if [ "$ML01" -ne "$ML1" ]; then 1452 1452 LogFile "--------------------------------------------" 1453 L agAll "WARNING: Duplicate device entry in mountlist"1453 LogAll "WARNING: Duplicate device entry in mountlist" 1454 1454 LogFile "--------------------------------------------" 1455 1455 fi … … 2560 2560 2561 2561 # Copy of files from the minimal env needed as per the deplist.d/minimal.conf file (which includes all busybox deps) 2562 mountlis=`grep -E "mount|fuse|ssh|libnss|bash" $DEPLIST_FILE $DEPLIST_DIR/* | grep -v " *#.*" | cut -d: -f2 | sort -u` 2563 rm -f $MINDI_TMP/minimal.lis 2564 for f in $MINDI_LIB/rootfs/bin/busybox $mountlis; do 2565 echo $f >> $MINDI_TMP/minimal.lis 2562 rm -f $MINDI_TMP/minimal.lis $MINDI_TMP/minimal2.lis 2563 for f in `grep -v " *#.*" $DEPLIST_DIR/minimal.conf | sort -u`; do 2564 if [ -r $f ]; then 2565 echo $f >> $MINDI_TMP/minimal.lis 2566 LocateDeps $f >> $MINDI_TMP/minimal2.lis 2567 fi 2566 2568 done 2567 LocateDeps $MINDI_LIB/rootfs/bin/busybox $mountlis >> $MINDI_TMP/minimal.lis 2568 for f in `cat $MINDI_TMP/minimal.lis`; do 2569 echo "`ReadAllLink $f`" >> $MINDI_TMP/minimal.lis 2569 for f in `cat $MINDI_TMP/minimal.lis` `sort -u $MINDI_TMP/minimal2.lis`; do 2570 ReadAllLink $f >> $MINDI_TMP/minimal.lis 2570 2571 done 2571 2572 # Initial / are trucated by tar … … 2578 2579 fi 2579 2580 done 2580 tar cf - $finallist 2>> $MINDI_TMP/$$.log | tar x f - || LogIt "ERROR: Problem in minimal analysis" $MINDI_TMP/$$.log2581 tar cf - $finallist 2>> $MINDI_TMP/$$.log | tar xUf - || LogIt "ERROR: Problem in minimal analysis" $MINDI_TMP/$$.log 2581 2582 2582 2583 # To improve support for distribution scripts, we now prefer to use bash as the std shell. Also fixes #600 2583 2584 ln -sf /bin/bash bin/sh 2584 2585 LogIt "INFO: Using bash as default shell" 2585 rm -f $MINDI_TMP/minimal.lis 2586 rm -f $MINDI_TMP/minimal.lis $MINDI_TMP/minimal2.lis 2586 2587 2587 2588 # Avoids an issue on some distro (RHEL5)
Note:
See TracChangeset
for help on using the changeset viewer.