Changeset 2537


Ignore:
Timestamp:
Jan 8, 2010, 5:29:52 PM (10 years ago)
Author:
bruno
Message:

r3761@localhost: bruno | 2010-01-08 15:59:41 +0100

  • Fix syntax issue in analyze-my-lvm
  • Better doc for pre and post
Location:
branches/2.2.9/mindi
Files:
2 edited

Legend:

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

    r2533 r2537  
    6161
    6262pre=/path/to/script
    63     Execute a pre-configuration script before calling mondorestore. Could be an NFS shared script e.g., or a script located in the initrd.
     63    Execute a pre-configuration script before calling mondorestore. Could be an NFS shared script e.g., or a script located in the initrd. Eg: pre=/tmp/isodir/my-pre.sh. Note that the script should be executable.
    6464
    6565post=/path/to/script
    66     Execute a final script before rebooting the machine at the end of the restoration. Could be an NFS shared script e.g., or a script located on the restored disk or in the initrd.
     66    Execute a final script before rebooting the machine at the end of the restoration. Could be an NFS shared script e.g., or a script located on the restored disk or in the initrd. Eg: post=/tmp/isodir/my-post.sh. Note that the script should be executable.
    6767
    6868serial=/dev/ttySx
  • branches/2.2.9/mindi/analyze-my-lvm

    r2536 r2537  
    5252    fi
    5353    # Do not process LV whose VG are excluded
    54     if ["`grep $volume_group $MINDI_TMP/excludedvgs`" = "" ]; then
    55         echo "# $LVMCMD lvcreate$params -n $logical_volume $volume_group"
     54    if [ -f $MINDI_TMP/excludedvgs ]; then
     55        if [ "`grep $volume_group $MINDI_TMP/excludedvgs`" = "" ]; then
     56            echo "# $LVMCMD lvcreate$params -n $logical_volume $volume_group"
     57        fi
    5658    fi
    5759    rm -f $MINDI_TMP/excludedvgs
Note: See TracChangeset for help on using the changeset viewer.