- Timestamp:
- Apr 30, 2009, 5:49:46 PM (16 years ago)
- Location:
- branches/2.2.9/mindi
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.9/mindi/README.bootparam
r2146 r2182 45 45 Use that USB device name as the place to look for backup content. The way drivers are loaded may lead that to the fact you have a different device name at restore time, compared to the one you used at backup time, making mondorestore unable to use the right device natively. This helper corrects that. Pass to it the device name, not the partition name. Example: usb=/dev/sdb 46 46 47 net 48 Activate network support 49 47 50 ----------------- 48 51 -
branches/2.2.9/mindi/rootfs/sbin/init
r2177 r2182 304 304 fi 305 305 create_dev_makedev 306 if [ -x /sbin/udevsettle ]; then 306 # Newer version use udevadm for that 307 if [ -x /sbin/udevadm ]; then 308 /sbin/udevadm settle 309 elif [ -x /sbin/udevsettle ]; then 307 310 /sbin/udevsettle 308 311 fi … … 703 706 LogIt "Warning - /tmp/mondo-restore.cfg not found" 704 707 fi 708 if [ "`grep -i pxe /proc/cmdline`" ] || [ "`grep -i net /proc/cmdline`" ]; then 709 # We need to get here exported variables from start-nfs 710 . /sbin/start-nfs 711 fi 705 712 706 713 if [ "`grep -i 'obdr ' /tmp/mondo-restore.cfg 2>/dev/null`" ] || [ "`grep -i ' udev' /tmp/mondo-restore.cfg 2>/dev/null`" ]; then … … 708 715 ExtractDataDisksAndLoadModules 709 716 elif [ "`grep -i pxe /proc/cmdline`" ]; then 710 # We need to get here exported variables from start-nfs711 . /sbin/start-nfs712 713 717 # Simulate a local CD 714 718 echo "/mnt/cdrom" > /tmp/CDROM-LIVES-HERE 715 719 CD_MOUNTED_OK=yes 716 720 ExtractDataDisksAndLoadModules 721 # Fake the conf file to force it to NFS mode, even if we made originally a CD (mandatory for mondorestore to work correctly) 722 sed -i "s/backup-media-type.*/backup-media-type nfs/" /tmp/mondo-restore.cfg 717 723 elif [ "`grep -i usb= /proc/cmdline`" ] || [ "`grep -i usb /tmp/mondo-restore.cfg 2>/dev/null | grep media-type`" ]; then 718 724 . /sbin/start-usb
Note:
See TracChangeset
for help on using the changeset viewer.