Changeset 2382 in MondoRescue for branches/2.2.10/mindi/rootfs/sbin/init
- Timestamp:
- Sep 10, 2009, 2:07:16 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.10/mindi/rootfs/sbin/init
r2362 r2382 724 724 fi 725 725 if [ "`grep -i pxe $CMDLINE`" ] || [ "`grep -i net $CMDLINE`" ]; then 726 # We need to get here exported variables from start-n fs727 . /sbin/start-n fs726 # We need to get here exported variables from start-netfs 727 . /sbin/start-netfs 728 728 fi 729 729 … … 737 737 ExtractDataDisksAndLoadModules 738 738 # Fake the conf file to force it to NFS mode, even if we made originally a CD (mandatory for mondorestore to work correctly) 739 sed -i "s/backup-media-type.*/backup-media-type n fs/" /tmp/mondo-restore.cfg739 sed -i "s/backup-media-type.*/backup-media-type netfs/" /tmp/mondo-restore.cfg 740 740 elif [ "`grep -i usb= $CMDLINE`" ] || [ "`grep -i usb /tmp/mondo-restore.cfg 2>/dev/null | grep media-type`" ]; then 741 741 . /sbin/start-usb … … 748 748 HandleCDROM 749 749 ExtractDataDisksAndLoadModules 750 # We need to get here exported variables from start-n fs751 . /sbin/start-n fs750 # We need to get here exported variables from start-netfs 751 . /sbin/start-netfs 752 752 fi 753 753 res=$? … … 848 848 LogIt "backup-media-type is specified in config file - great." 849 849 LogIt "Calling post-init" 850 # start-n fs moved it under /tmp as the NFS share is already unmounted850 # start-netfs moved it under /tmp as the NFS share is already unmounted 851 851 if [ "`echo $pre | grep -E '^/tmp/isodir'`" ]; then 852 852 post=`echo $pre | sed 's|^/tmp/isodir|/tmp|'` … … 866 866 echo $i | grep -qi post= && post=`echo $i | cut -d= -f2` 867 867 done 868 # start-n fs moved it under /tmp as the NFS share is already unmounted868 # start-netfs moved it under /tmp as the NFS share is already unmounted 869 869 if [ "`echo $post | grep -E '^/tmp/isodir'`" ]; then 870 870 post=`echo $post | sed 's|^/tmp/isodir|/tmp|'`
Note:
See TracChangeset
for help on using the changeset viewer.