VirtualBox

Ignore:
Timestamp:
Aug 1, 2016 4:31:17 PM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
109427
Message:

bugref:8480: Guest Additions: Cannot unload vboxguest on upgrade: moved run-inst.sh from the host installer tree back to the Additions installer tree where it belongs, changed it back from being a generic installer stub to the hard-coded Additions installer and hard-coded the order of Additions set-up and clean-up scripts to ensure that we only try to unload the kernel drivers after everything else has been shut down.

File:
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/linux/installer/install.sh.in

    r62830 r62831  
    2525
    2626# Note: These variable names must *not* clash with variables in $CONFIG_DIR/$CONFIG!
    27 PACKAGE="_PACKAGE_"
    28 PACKAGE_NAME="_PACKAGE_NAME_"
     27PACKAGE="VBoxGuestAdditions"
     28PACKAGE_NAME="VirtualBox Guest Additions"
    2929UNINSTALL="uninstall.sh"
    3030ROUTINES="routines.sh"
     
    3434BUILD_TYPE="_BUILDTYPE_"
    3535USERNAME="_USERNAME_"
    36 UNINSTALL_SCRIPTS="_UNINSTALL_SCRIPTS_"
     36UNINSTALL_SCRIPTS="vboxadd-x11 vboxvfs vboxadd-timesync vboxadd-service vboxadd"
    3737
    3838INSTALLATION_DIR="/opt/$PACKAGE-$INSTALLATION_VER"
     
    126126    if ! test "$1" = "force" ; then
    127127        cat 1>&2 << EOF
    128 You appear to have a version of the _PACKAGE_ software
     128You appear to have a version of the VirtualBox Guest Additions
    129129on your system which was installed from a different source or using a
    130130different type of installer.  If you installed it from a package from your
     
    153153        remove_init_script "$i" 2>> "${LOGFILE}"
    154154    done
    155     for i in "/opt/$PACKAGE-"*/init/*; do
    156       test -z "$NO_CLEANUP" && grep -q '^# *cleanup_script *$' "${i}" && "${i}" cleanup 1>&2 2>> "$LOGFILE"
     155    for i in "/opt/$PACKAGE-"*/init; do
     156      for j in $UNINSTALL_SCRIPTS; do
     157        script="${i}/${j}"
     158        test -x "${script}" && test -z "$NO_CLEANUP" &&
     159          grep -q '^# *cleanup_script *$' "${script}" &&
     160          "${script}" cleanup 1>&2 2>> "$LOGFILE"
     161      done
    157162    done
    158163
     
    416421
    417422# Install, set up and start init scripts
    418 for i in "$INSTALLATION_DIR/init/"*; do
     423for i in "$INSTALLATION_DIR/init/vboxadd" "$INSTALLATION_DIR/init/vboxadd-service" \
     424    "$INSTALLATION_DIR/init/vboxadd-x11"; do
    419425  if test -r "$i"; then
    420426    install_init_script "$i" "`basename "$i"`" 2>> "${LOGFILE}"
     
    463469
    464470# Stop and clean up all services
    465 for i in "$INSTALLATION_DIR/init/"*; do
     471for i in "$INSTALLATION_DIR/init/vboxadd-x11" "$INSTALLATION_DIR/init/vboxadd-service" \
     472    "$INSTALLATION_DIR/init/vboxadd"; do
    466473    if test -r "\$i"; then
    467474        stop_init_script "\`basename "\$i"\`" 2>> "${LOGFILE}"
Note: See TracChangeset for help on using the changeset viewer.

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