Changeset 2380 in MondoRescue for branches/2.2.9/mindi/rootfs/sbin/init
- Timestamp:
- Sep 9, 2009, 8:30:47 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.9/mindi/rootfs/sbin/init
r2353 r2380 719 719 fi 720 720 if [ "`grep -i pxe /proc/cmdline`" ] || [ "`grep -i net /proc/cmdline`" ]; then 721 # We need to get here exported variables from start-n fs722 . /sbin/start-n fs721 # We need to get here exported variables from start-netfs 722 . /sbin/start-netfs 723 723 fi 724 724 … … 732 732 ExtractDataDisksAndLoadModules 733 733 # Fake the conf file to force it to NFS mode, even if we made originally a CD (mandatory for mondorestore to work correctly) 734 sed -i "s/backup-media-type.*/backup-media-type n fs/" /tmp/mondo-restore.cfg734 sed -i "s/backup-media-type.*/backup-media-type netfs/" /tmp/mondo-restore.cfg 735 735 elif [ "`grep -i usb= /proc/cmdline`" ] || [ "`grep -i usb /tmp/mondo-restore.cfg 2>/dev/null | grep media-type`" ]; then 736 736 . /sbin/start-usb … … 743 743 HandleCDROM 744 744 ExtractDataDisksAndLoadModules 745 # We need to get here exported variables from start-n fs746 . /sbin/start-n fs745 # We need to get here exported variables from start-netfs 746 . /sbin/start-netfs 747 747 fi 748 748 res=$? … … 843 843 LogIt "backup-media-type is specified in config file - great." 844 844 LogIt "Calling post-init" 845 # start-n fs moved it under /tmp as the NFS share is already unmounted845 # start-netfs moved it under /tmp as the NFS share is already unmounted 846 846 if [ "`echo $pre | grep -E '^/tmp/isodir'`" ]; then 847 847 post=`echo $pre | sed 's|^/tmp/isodir|/tmp|'` … … 861 861 echo $i | grep -qi post= && post=`echo $i | cut -d= -f2` 862 862 done 863 # start-n fs moved it under /tmp as the NFS share is already unmounted863 # start-netfs moved it under /tmp as the NFS share is already unmounted 864 864 if [ "`echo $post | grep -E '^/tmp/isodir'`" ]; then 865 865 post=`echo $post | sed 's|^/tmp/isodir|/tmp|'`
Note:
See TracChangeset
for help on using the changeset viewer.