Changeset 3168 in MondoRescue
- Timestamp:
- Jul 26, 2013, 8:50:01 AM (11 years ago)
- Location:
- branches/3.0/mindi
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.0/mindi/README.bootparam
r3134 r3168 83 83 ----------------- 84 84 85 Look also at README.pxe for additional parameters linked to the PXE/N FSusage85 Look also at README.pxe for additional parameters linked to the PXE/Network usage -
branches/3.0/mindi/README.pxe
r3111 r3168 11 11 label mondo 12 12 kernel vmlinuz-mondo 13 append initrd=initrd-mondo load_ramdisk=1 prompt_ramdisk=0 ramdisk_size=131072 selinux=0 rw root=/dev/ram iso acpi=off apm=off devfs=nomount exec-shield=0 pxe [proto=nfs|sshfs|smbfs] [prefix=machine] [ipconf=(ipdev:ipadr:netmask:broadcast:gateway|ipdev:dhcp)] [hwaddr=M:A:C:A:D:R] [netfsmount=server:mountpoint] [netfsopt=-o option][netfspath=local_path] [ping=#] ...13 append initrd=initrd-mondo load_ramdisk=1 prompt_ramdisk=0 ramdisk_size=131072 selinux=0 rw root=/dev/ram iso acpi=off apm=off devfs=nomount exec-shield=0 pxe [proto=nfs|sshfs|smbfs] [prefix=machine] [ipconf=(ipdev:ipadr:netmask:broadcast:gateway|ipdev:dhcp)] [hwaddr=M:A:C:A:D:R] [netfsmount=server:mountpoint] [netfsopt=-o option][netfspath=local_path] [ping=#] [iproute=-net:netdest:[netmask:Nm]gw:GW] ... 14 14 15 15 ipdev is the device name (e.g. eth2) … … 18 18 broadcast is the Network broadcast (e.g. 192.168.1.255) 19 19 gateway is the default gateway (e.g. 192.168.1.254) 20 iproute is an additional static route using the route add syntax using : nstead of space to separate values 20 21 dhcp is a keyword. Using it will provide all the previous 4 values to activate the LAN interface. 21 22 hwaddr is the MAC address of the device you want to use to restore through … … 27 28 netfspath is the local path on the remote server where the image is located, if different from the one at backup time. 28 29 local_path is the local directory under which the mage was made (with the -d option) 29 r madisk_size may have to be increase to 262144 or more on more recent distributions such as RHEL 630 ramdisk_size may have to be increase to 262144 or more on more recent distributions such as RHEL 6 30 31 The [] mean this parameter is optional 31 32 The () mean that you have a choice with the '|' meaning 'or' … … 53 54 Please report any problem around that tool to bruno_at_mondorescue.org 54 55 56 2013-07-25 adds support for iproute 55 57 2011-10-09 adds support for hwaddr 56 58 2009-12-05 nfsopt added tp allow for custom options at mount time -
branches/3.0/mindi/rootfs/sbin/start-netfs
r3111 r3168 18 18 ipgateway=`grep netfs-client-defgw /tmp/mondo-restore.cfg 2> /dev/null | cut -d' ' -f2-` 19 19 proto=`grep netfs-proto /tmp/mondo-restore.cfg 2> /dev/null | cut -d' ' -f2-` 20 iptoute=`grep netfs-route /tmp/mondo-restore.cfg 2> /dev/null | cut -d' ' -f2-` 20 21 ipconf="" 21 22 pre="" … … 43 44 echo $i | grep -qi post= && post=`echo $i | cut -d= -f2` 44 45 echo $i | grep -qi proto= && proto=`echo $i | cut -d= -f2` 46 echo $i | grep -qi iproute= && iproute=`echo $i | cut -d= -f2` 45 47 done 46 48 … … 85 87 fi 86 88 87 # Leave time to the s atck to wake up (reported by some users)89 # Leave time to the stack to wake up (reported by some users) 88 90 sleep 5 91 92 # Handle a potential static route 93 if [ _"$iproute" != _"" ]; then 94 iproute=`echo $iproute | perl -pi -e 's|:| |g'` 95 LogIt "Adding static route with route add $iproute" 96 route add $iproute 97 fi 89 98 90 99 # ping server helps waking interface up
Note:
See TracChangeset
for help on using the changeset viewer.