VirtualBox

Changeset 64600 in vbox for trunk


Ignore:
Timestamp:
Nov 8, 2016 4:34:10 PM (8 years ago)
Author:
vboxsync
Message:

testbox-maintenance.sh: Try mount missing stuff.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/docs/testbox-maintenance.sh

    r64580 r64600  
    104104# Derive the backup dir and log file name from it.
    105105if test ! -f "${MY_BACKUP_MNT_TEST_FILE}"; then
    106     ErrorMsgExit 11 "Backup directory is not mounted."
     106    mount "${MY_BACKUP_ROOT}"
     107    if test ! -f "${MY_BACKUP_MNT_TEST_FILE}"; then
     108        echo "Retrying mounting '${MY_BACKUP_ROOT}' in 15 seconds..." >&2
     109        sleep 15
     110        mount "${MY_BACKUP_ROOT}"
     111    fi
     112    if test ! -f "${MY_BACKUP_MNT_TEST_FILE}"; then
     113        ErrorMsgExit 11 "Backup directory is not mounted."
     114    fi
    107115fi
    108116MY_BACKUP_DIR="${MY_BACKUP_ROOT}/${MY_IP}"
     
    132140
    133141if test ! -f "${MY_TFTP_ROOT}/pxelinux.0"; then
    134     ErrorMsgExit 12 "TFTP share mounted or mixxing pxelinux.0 in the root."
     142    mount "${MY_TFTP_ROOT}"
     143    if test ! -f "${MY_TFTP_ROOT}/pxelinux.0"; then
     144        echo "Retrying mounting '${MY_TFTP_ROOT}' in 15 seconds..." >&2
     145        sleep 15
     146        mount "${MY_BACKUP_ROOT}"
     147    fi
     148    if test ! -f "${MY_TFTP_ROOT}/pxelinux.0"; then
     149        ErrorMsgExit 12 "TFTP share mounted or mixxing pxelinux.0 in the root."
     150    fi
    135151fi
    136152
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette