VirtualBox

Changeset 58820 in vbox for trunk/src/VBox/Installer


Ignore:
Timestamp:
Nov 23, 2015 12:51:11 PM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
104276
Message:

Additions/linux/installers: fix error reporting when the kernel module build fails, both in the installer and the service.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Installer/linux/run-inst.sh

    r57940 r58820  
    421421    install_init_script "$i" "`basename "$i"`" 2>> "${LOGFILE}"
    422422    addrunlevel "`basename "$i"`" 2>> "${LOGFILE}"
    423     test -n "$DO_SETUP" && grep -q '^# *setup_script *$' "${i}" && "${i}" setup 1>&2 2>> "${LOGFILE}"
    424     start_init_script "`basename "$i"`" 2>> "${LOGFILE}"
     423    if test -n "$DO_SETUP" && grep -q '^# *setup_script *$' "${i}"; then
     424        if "${i}" setup 1>&2 2>> "${LOGFILE}"; then
     425            start_init_script "`basename "$i"`" 2>> "${LOGFILE}"
     426        else
     427            echo 1>&2 "Failed to set up service `basename "$i"`, please check the log file"
     428            echo 1>&2 "${LOGFILE} for details."
     429        fi
     430    fi
    425431  fi
    426432done
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