VirtualBox

Changeset 61712 in vbox


Ignore:
Timestamp:
Jun 15, 2016 1:04:12 PM (9 years ago)
Author:
vboxsync
Message:

bugref:8414: Linux installer trunk does not remove old VBox modules: remove old generated, as opposed to packaged, host kernel modules in prerm-common, which the .run installer executes before installing. Otherwise it will refuse to set itself up. This is only known to affect the .run installer for the VirtualBox host package.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Installer/linux/prerm-common.sh

    r59426 r61712  
    6666remove_init_script vboxnet >/dev/null 2>&1
    6767rm -f /sbin/vboxconfig
     68# Remove any generated modules
     69if [ -z "$VBOX_DONT_REMOVE_OLD_MODULES" ]; then
     70    for folder in /lib/modules/*/misc /lib/modules/*/kernel/misc; do
     71        ## @todo not duplicate the names all over the place.
     72        for file in vboxdrv.ko vboxnetflt.ko vboxnetadp.ko vboxpci.ko; do
     73            test -f "${folder}/${file}" && rm -f "${folder}/${file}"
     74        done
     75    done
     76fi
    6877exit 0
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