Changeset 1967 in MondoRescue for branches/2.2.6/mindi/rootfs/sbin/post-init


Ignore:
Timestamp:
May 29, 2008, 5:40:05 PM (16 years ago)
Author:
Bruno Cornec
Message:
  • Remove all references to /root/images
  • Fix the lack of support for options in mondorestore by copying what is done for mondoarchive and sharing the functions analyzing the cli (getopt usage)
  • Review the now common handle_incoming_parameters to have it support correctly 2 modes (archiving and restoring)
  • Update mondorestore man page to take in account the options supported now
  • Replace mondorestore options --nuke, --interactive, with -Z nuke, -Z interactive ...
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.6/mindi/rootfs/sbin/post-init

    r1962 r1967  
    115115if [ "$compare" ] ; then
    116116    LogIt "------------------COMPARE MODE-----------------" 1
    117     mondorestore $mondoopt --compare
     117    mondorestore $mondoopt -Z compare
    118118elif [ "$nuke" ] ; then
    119119    LogIt "-------------------NUKE MODE-------------------" 1
    120     mondorestore $mondoopt --nuke
     120    mondorestore $mondoopt -Z nuke
    121121elif [ "$expert" ] ; then
    122122    if [ "`grep tapedev /tmp/mondo-restore.cfg`" ] ; then
     
    128128        LogIt "Tape Mode -- calling mondorestore..."
    129129            if [ "$nuke" ] ; then
    130                 mondorestore $mondoopt --nuke
     130                mondorestore $mondoopt -Z nuke
    131131            else
    132132                mondorestore $mondoopt; # MR will detect & access the tape
     
    141141            LogIt "Cdstream Mode -- calling mondorestore..."
    142142            if [ "$nuke" ] ; then
    143                 mondorestore --nuke $mondoopt
     143                mondorestore -Z nuke $mondoopt
    144144            else
    145145                mondorestore $mondoopt; # MR will detect & access the cdstream
     
    156156else
    157157    LogIt "------------------INTERACTIVE------------------" 1
    158     mondorestore --interactive $mondoopt
     158    mondorestore -Z interactive $mondoopt
    159159fi
    160160
    161 [ -e "/tmp/DO-MBR-PLEASE" ] && LogIt "PLEASE RUN 'mondorestore --mbr' NOW TO INITIALIZE YOUR BOOT SECTOR." 1
     161[ -e "/tmp/DO-MBR-PLEASE" ] && LogIt "PLEASE RUN 'mondorestore -Z mbr' NOW TO INITIALIZE YOUR BOOT SECTOR." 1
    162162
    163163exit 0
Note: See TracChangeset for help on using the changeset viewer.