Ignore:
Timestamp:
Dec 5, 2009, 5:55:04 PM (11 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)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.