VirtualBox

Changeset 69564 in vbox


Ignore:
Timestamp:
Nov 3, 2017 2:36:26 PM (7 years ago)
Author:
vboxsync
Message:

Linux Additions: do not try to remove kernel modules on clean-up.
bugref:3809: Linux installer maintenance

When we uninstall Linux Additions it is normally not possible to unload all
kernel modules. However we generally succeeded in removing vboxsf. When
upgrading this resulted in an error message when trying to load the new
version and further meant that shared folder functionality was guaranteed
not to be available until the next guest restart. This change drops the
unload attempt.

File:
1 edited

Legend:

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

    r69500 r69564  
    293293        fail "Cannot unmount vboxsf folders"
    294294    fi
    295     test -n "${INSTALL_NO_MODULE_BUILDS}" && return 0
    296     modprobe -q -r -a vboxvideo vboxsf vboxguest
    297     if egrep -q 'vboxguest|vboxsf|vboxvideo' /proc/modules; then
     295    test -n "${INSTALL_NO_MODULE_BUILDS}" ||
    298296        info "You may need to restart your guest system to finish removing the guest drivers."
    299     else
    300         rm -f $userdev || fail "Cannot unlink $userdev"
    301         rm -f $dev || fail "Cannot unlink $dev"
    302     fi
    303297    return 0
    304298}
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