Changeset 3277 in MondoRescue
- Timestamp:
- Apr 30, 2014, 1:42:37 AM (11 years ago)
- Location:
- branches/3.2/mindi
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.2/mindi/mindi
r3270 r3277 2540 2540 fi 2541 2541 2542 # Copy of files from the minimal env needed as per the deplist.d/minimal.conf file (which includes all busybox deps)2542 # Copy of files from the minimal env needed as per the deplist.d/minimal.conf & udev.conf file (which includes all busybox deps) 2543 2543 rm -f $MINDI_TMP/minimal.lis $MINDI_TMP/minimal2.lis 2544 for f in `grep -v " *#.*" $DEPLIST_DIR/minimal.conf | sort -u`; do 2545 if [ -r $f ]; then 2546 echo $f >> $MINDI_TMP/minimal.lis 2547 LocateDeps $f >> $MINDI_TMP/minimal2.lis 2544 for f in `cat $DEPLIST_DIR/minimal.conf $DEPLIST_DIR/udev.conf | grep -vE " *#.*|^#" | sort -u` ; do 2545 if [ -d $f ]; then 2546 for g in `find $f`; do 2547 echo $g >> $MINDI_TMP/minimal.lis 2548 LocateDeps $g >> $MINDI_TMP/minimal2.lis 2549 done 2550 else 2551 if [ -r $f ]; then 2552 echo $f >> $MINDI_TMP/minimal.lis 2553 LocateDeps $f >> $MINDI_TMP/minimal2.lis 2554 fi 2548 2555 fi 2549 2556 done -
branches/3.2/mindi/rootfs/etc/init.d/rcS
r3274 r3277 74 74 ExtractDevTarballs() { 75 75 cd / 76 for fname in ataraid.tgz ida.tgz i2o.tgz rd.tgz raw.tgz cciss.tgz nst.tgz dm.tgz vc.tgz ; do 77 if [ ! -e "/$fname" ] ; then 78 LogIt "/$fname not found; cannot extract to /." 1 79 else 80 echo -en "\rExtracting /$fname... " 81 tar -zxf /$fname || LogIt "Error occurred while extracting /$fname" 82 fi 83 done 76 if [ -x /usr/lib/systemd/systemd-udevd ]; then 77 # Just use vc dev files. The other are useless and create huge delays with LVM 78 tar -zxf /vc.tgz || LogIt "Error occurred while extracting /vc.tgz" 79 else 80 for fname in ataraid.tgz ida.tgz i2o.tgz rd.tgz raw.tgz cciss.tgz nst.tgz dm.tgz vc.tgz ; do 81 if [ ! -e "/$fname" ] ; then 82 LogIt "/$fname not found; cannot extract to /." 1 83 else 84 echo -en "\rExtracting /$fname... " 85 tar -zxf /$fname || LogIt "Error occurred while extracting /$fname" 86 fi 87 done 88 fi 84 89 echo -en "\r" 85 90 LogIt "Extracted additional /dev entries OK. " 1 … … 396 401 ps | grep -v grep |grep udevd 2> /dev/null 1> /dev/null 397 402 if [ $? -ne 0 ]; then 403 echo "Waiting for udev to start..." 398 404 if [ -x /sbin/udevd ]; then 399 405 /sbin/udevd --daemon & … … 402 408 elif [ -x /usr/lib/systemd/systemd-udevd ]; then 403 409 # from https://github.com/hut/minirc/blob/master/rc 410 echo "INFO: This is the systemd version of udev" 404 411 mkdir -p /run/systemd/journal 405 412 /usr/lib/systemd/systemd-udevd --daemon … … 407 414 udevadm trigger --action=add --type=devices 408 415 fi 409 echo "Waiting for udev to start..."410 416 sleep 5 411 417 LogIt "udev started manually" 1 … … 487 493 # Recent LVM need this caching daemon to work 488 494 if [ -x /usr/sbin/lvmetad ]; then 495 mkdir -p /run/lvm 489 496 /usr/sbin/lvmetad 490 497 fi … … 863 870 rm -f $LOGFILE 864 871 872 mkdir /proc 2> /dev/null 873 mount /proc /proc -t proc 874 865 875 # Creates log file 866 876 LogIt "" 867 echo "Welcome to init (from mindi ${MINDI_VER}-r${MINDI_REV})" | tee -a $LOGFILE868 869 mkdir /proc 2> /dev/null870 mount /proc /proc -v -t proc 2>> $LOGFILE871 mkdir /sys 2> /dev/null872 mount /sys /sys -v -t sysfs 2>> $LOGFILE873 874 877 # Redirect every message to the LOGFILE 875 878 exec > >(tee -a ${LOGFILE}) 876 879 exec 2> >(tee -a ${LOGFILE} >&2) 880 881 echo "Welcome to init (from mindi ${MINDI_VER}-r${MINDI_REV})" | tee -a $LOGFILE 882 883 mkdir /sys 2> /dev/null 884 mount /sys /sys -t sysfs 877 885 878 886 [ ! "$GROOVY" ] && Die "I'm not groovy!"
Note:
See TracChangeset
for help on using the changeset viewer.