Changeset 2382 in MondoRescue for branches/2.2.10/mindi/rootfs/sbin/init


Ignore:
Timestamp:
Sep 10, 2009, 2:07:16 AM (15 years ago)
Author:
Bruno Cornec
Message:
  • Change NFS support into a NetFS support to allow for multiple protocol in addition to NFS (NEEDS TESTING)

(Backport from 2.2.9)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.10/mindi/rootfs/sbin/init

    r2362 r2382  
    724724fi
    725725if [ "`grep -i pxe $CMDLINE`" ] || [ "`grep -i net $CMDLINE`" ]; then
    726     # We need to get here exported variables from start-nfs
    727     . /sbin/start-nfs
     726    # We need to get here exported variables from start-netfs
     727    . /sbin/start-netfs
    728728fi
    729729
     
    737737    ExtractDataDisksAndLoadModules
    738738    # 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 nfs/" /tmp/mondo-restore.cfg
     739    sed -i "s/backup-media-type.*/backup-media-type netfs/" /tmp/mondo-restore.cfg
    740740elif [ "`grep -i usb= $CMDLINE`" ] || [ "`grep -i usb /tmp/mondo-restore.cfg 2>/dev/null | grep media-type`" ]; then
    741741    . /sbin/start-usb
     
    748748    HandleCDROM
    749749    ExtractDataDisksAndLoadModules
    750     # We need to get here exported variables from start-nfs
    751     . /sbin/start-nfs
     750    # We need to get here exported variables from start-netfs
     751    . /sbin/start-netfs
    752752fi
    753753res=$?
     
    848848    LogIt "backup-media-type is specified in config file - great."
    849849    LogIt "Calling post-init"
    850     # start-nfs moved it under /tmp as the NFS share is already unmounted
     850    # start-netfs moved it under /tmp as the NFS share is already unmounted
    851851    if [ "`echo $pre | grep -E '^/tmp/isodir'`" ]; then
    852852        post=`echo $pre | sed 's|^/tmp/isodir|/tmp|'`
     
    866866        echo $i | grep -qi post= && post=`echo $i | cut -d= -f2`
    867867    done
    868     # start-nfs moved it under /tmp as the NFS share is already unmounted
     868    # start-netfs moved it under /tmp as the NFS share is already unmounted
    869869    if [ "`echo $post | grep -E '^/tmp/isodir'`" ]; then
    870870        post=`echo $post | sed 's|^/tmp/isodir|/tmp|'`
Note: See TracChangeset for help on using the changeset viewer.