Changeset 2249


Ignore:
Timestamp:
Jul 5, 2009, 2:42:21 AM (10 years ago)
Author:
bruno
Message:

r3161@localhost: bruno | 2009-07-03 14:31:21 +0200

  • Adds support for a new option script at boot prompt
Location:
branches/2.2.9/mindi
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.9/mindi/README.bootparam

    r2189 r2249  
    2727    Add those modules to the list of modules to load systematically
    2828
     29net
     30    Activate network support
     31
    2932nodmraid
    3033    Do not try to start dmraid support
     
    4245    Do not resize partitions using a multiplication factor of (New disk size)/(Old disk size) to use your unallocated hard disk space
    4346
     47script=/path/to/script
     48    Execute a final script before rebooting the machine at the end of the restoration. Could be an NFS shared script e.g.
     49
    4450textonly
    4551    do not call any Newt library routines; this is unattractive but valuable if you find your Newt library has bugs in it or on ia64
     
    4854    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
    4955
    50 net
    51     Activate network support
    52 
    5356-----------------
    5457
  • branches/2.2.9/mindi/rootfs/sbin/init

    r2212 r2249  
    831831    LogIt "I think this media has no archives on it."
    832832fi
     833if ! [ "`grep -i "script=" /proc/cmdline`" ] ; then
     834    for i in `cat /proc/cmdline` ; do
     835        echo $i | grep -qi script= && script=`echo $i | cut -d= -f2`
     836    done
     837    if [ -x $script ]; then
     838        echo "Executing final script $script"
     839        LogIt "Executing final script $script"
     840        $script
     841    fi
     842fi
    833843if grep "RESTORE" /proc/cmdline > /dev/null 2> /dev/null ; then
    834844    echo "Rebooting in 10 seconds automatically as per reboot order"
Note: See TracChangeset for help on using the changeset viewer.