Changeset 2498 in MondoRescue for branches/2.2.9


Ignore:
Timestamp:
Dec 5, 2009, 5:53:03 PM (14 years ago)
Author:
Bruno Cornec
Message:

nfsopt restore boot time option added to support custom mount options for network restore

Location:
branches/2.2.9/mindi
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.9/mindi/README.pxe

    r2380 r2498  
    1111label mondo
    1212        kernel vmlinuz-mondo
    13         append initrd=initrd-mondo load_ramdisk=1 prompt_ramdisk=0 ramdisk_size=131072 rw root=/dev/ram iso acpi=off apm=off devfs=nomount exec-shield=0 pxe [proto=nfs|sshfs] [prefix=machine] [ipconf=(ipdev:ipadr:netmask:broadcast:gateway|ipdev:dhcp)] [netfsmount=server:mountpoint] [netfspath=local_path] [ping=#] ...
     13        append initrd=initrd-mondo load_ramdisk=1 prompt_ramdisk=0 ramdisk_size=131072 rw root=/dev/ram iso acpi=off apm=off devfs=nomount exec-shield=0 pxe [proto=nfs|sshfs] [prefix=machine] [ipconf=(ipdev:ipadr:netmask:broadcast:gateway|ipdev:dhcp)] [netfsmount=server:mountpoint] [netfsopt=-o option][netfspath=local_path] [ping=#] ...
    1414
    1515ipdev is the device name (e.g. eth2)
     
    2323mountpoint is the mount point on the Remote Network server to use (if NFS, should be in /etc/exports of the NFS server)
    2424netfsmount is the server and mountpoint on which the ISO is available, if different from the one at backup time. For SSHFS the server part can be of the form user@server.
     25netfsopt may contains options passed to the mount command
    2526netfspath is the local path on the remote server where the image is located, if different from the one at backup time.
    2627local_path is the local directory under which the mage was made (with the -d option)
     
    4950Please report any problem around that tool to bruno@mondorescue.org
    5051
     522009-12-05 nfsopt added tp allow for custom options at mount time
    51532009-09-09 Changed to netfs for multi protocol support (nfs, sshfs, ...)
    52542009-05-07 nfspath added to allow redeployment from another NFS directory
  • branches/2.2.9/mindi/rootfs/sbin/init

    r2487 r2498  
    8888    # Doing that is only valid when using a real serial line
    8989    if [ -f $serial ]; then
     90        LogIt "Redirecting serial $serial to /dev/tty" 1
    9091        ln -s -f $serial /dev/tty
    9192    fi
  • branches/2.2.9/mindi/rootfs/sbin/start-netfs

    r2438 r2498  
    3535    echo $i | grep -qi ipconf= && ipconf=`echo $i | cut -d= -f2`
    3636    echo $i | grep -qi netfsmount= && export netfsmount=`echo $i | cut -d= -f2`
     37    echo $i | grep -qi netfsopt= && export netfsopt=`echo $i | cut -d= -f2`
    3738    echo $i | grep -qi prefix= && export imgname=`echo $i | cut -d= -f2`
    3839    echo $i | grep -qi netfspath= && export dirimg=`echo $i | cut -d= -f2`
     
    8384        # We need a correct console for ssh
    8485        ln -sf /dev/console /dev/tty
    85         sshfs -o ro,StrictHostKeyChecking=no $netfsmount /tmp/isodir
     86        sshfs -o ro,StrictHostKeyChecking=no $netfsopt $netfsmount /tmp/isodir
    8687    elif [ "$proto" != "" ]; then
    8788        LogIt "Mounting Network share ($netfsmount) on /tmp/isodir..."
    8889        touch /etc/mtab
    89         mount -t $proto -o nolock,ro $netfsmount /tmp/isodir
     90        mount -t $proto -o nolock,ro $netfsopt $netfsmount /tmp/isodir
    9091    else
    9192        LogIt "Unknown protocol $proto"
Note: See TracChangeset for help on using the changeset viewer.