Changeset 2499 in MondoRescue for branches/2.2.10/mindi/rootfs


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

nfsopt restore boot time option added to support custom mount options for network restore
(2.2.9.2 backport)

Location:
branches/2.2.10/mindi/rootfs/sbin
Files:
2 edited

Legend:

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

    r2488 r2499  
    100100    # Doing that is only valid when using a real serial line
    101101    if [ -f $serial ]; then
     102        LogIt "Redirecting serial $serial to /dev/tty" 1
    102103        ln -s -f $serial /dev/tty
    103104    fi
  • branches/2.2.10/mindi/rootfs/sbin/start-netfs

    r2462 r2499  
    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.