Changeset 2498 in MondoRescue
- Timestamp:
- Dec 5, 2009, 5:53:03 PM (14 years ago)
- Location:
- branches/2.2.9/mindi
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.9/mindi/README.pxe
r2380 r2498 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.9/mindi/rootfs/sbin/init
r2487 r2498 88 88 # Doing that is only valid when using a real serial line 89 89 if [ -f $serial ]; then 90 LogIt "Redirecting serial $serial to /dev/tty" 1 90 91 ln -s -f $serial /dev/tty 91 92 fi -
branches/2.2.9/mindi/rootfs/sbin/start-netfs
r2438 r2498 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.