Changeset 2499 in MondoRescue
- Timestamp:
- Dec 5, 2009, 5:55:04 PM (15 years ago)
- Location:
- branches/2.2.10/mindi
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.10/mindi/README.pxe
r2382 r2499 11 11 label mondo 12 12 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] [netfs path=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=#] ... 14 14 15 15 ipdev is the device name (e.g. eth2) … … 23 23 mountpoint is the mount point on the Remote Network server to use (if NFS, should be in /etc/exports of the NFS server) 24 24 netfsmount 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. 25 netfsopt may contains options passed to the mount command 25 26 netfspath is the local path on the remote server where the image is located, if different from the one at backup time. 26 27 local_path is the local directory under which the mage was made (with the -d option) … … 49 50 Please report any problem around that tool to bruno@mondorescue.org 50 51 52 2009-12-05 nfsopt added tp allow for custom options at mount time 51 53 2009-09-09 Changed to netfs for multi protocol support (nfs, sshfs, ...) 52 54 2009-05-07 nfspath added to allow redeployment from another NFS directory -
branches/2.2.10/mindi/rootfs/sbin/init
r2488 r2499 100 100 # Doing that is only valid when using a real serial line 101 101 if [ -f $serial ]; then 102 LogIt "Redirecting serial $serial to /dev/tty" 1 102 103 ln -s -f $serial /dev/tty 103 104 fi -
branches/2.2.10/mindi/rootfs/sbin/start-netfs
r2462 r2499 35 35 echo $i | grep -qi ipconf= && ipconf=`echo $i | cut -d= -f2` 36 36 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` 37 38 echo $i | grep -qi prefix= && export imgname=`echo $i | cut -d= -f2` 38 39 echo $i | grep -qi netfspath= && export dirimg=`echo $i | cut -d= -f2` … … 83 84 # We need a correct console for ssh 84 85 ln -sf /dev/console /dev/tty 85 sshfs -o ro,StrictHostKeyChecking=no $netfs mount /tmp/isodir86 sshfs -o ro,StrictHostKeyChecking=no $netfsopt $netfsmount /tmp/isodir 86 87 elif [ "$proto" != "" ]; then 87 88 LogIt "Mounting Network share ($netfsmount) on /tmp/isodir..." 88 89 touch /etc/mtab 89 mount -t $proto -o nolock,ro $netfs mount /tmp/isodir90 mount -t $proto -o nolock,ro $netfsopt $netfsmount /tmp/isodir 90 91 else 91 92 LogIt "Unknown protocol $proto"
Note:
See TracChangeset
for help on using the changeset viewer.