VirtualBox

Ignore:
Timestamp:
Oct 14, 2015 1:46:43 PM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
103408
Message:

Installer/linux (host): move kernel module building and clean-up to shared installer script.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Installer/linux/debian/postinst

    r58186 r58241  
    1717#  abort-remove:      (our version): removing this package failed
    1818#  abort-deconfigure: (our version): error during resolving conflicts
     19
     20## @todo Do we really gain anything from not just executing everything
     21##       unconditionally?
    1922
    2023LOG="/var/log/vbox-install.log"
     
    7881if test "${INSTALL_NO_VBOXDRV}" = 1; then
    7982  POSTINST_START=--nostart
    80   # if INSTALL_NO_VBOXDRV is set to 1, remove all shipped modules
    81   if [ "$1" = "configure" ]; then
    82     rm -f /lib/modules/*/misc/vboxdrv.ko
    83     rm -f /lib/modules/*/misc/vboxnetflt.ko
    84     rm -f /lib/modules/*/misc/vboxnetadp.ko
    85     rm -f /lib/modules/*/misc/vboxpci.ko
    86   fi
    8783else
    8884  POSTINST_START=
    89   # Disable module compilation with INSTALL_NO_VBOXDRV=1 in /etc/default/virtualbox
    90   if [ ! -f /lib/modules/`uname -r`/misc/vboxdrv.ko ]; then
    91     if [ "$1" = "configure" ]; then
    92       db_get virtualbox/module-compilation-allowed
    93       if [ "$RET" = "false" ]; then
    94         cat << EOF
    95 Unable to find a precompiled module for the current kernel
    96 though module compilation denied by debconf setting.
    97 EOF
    98         POSTINST_START=--nostart
    99       else
    100         db_input low virtualbox/module-compilation-allowed || true
    101         db_go || true
    102         db_get virtualbox/module-compilation-allowed
    103         if [ "$RET" = "false" ]; then
    104           POSTINST_START=--nostart
    105         fi
    106       fi
    107     fi # $1 = "configure"
    108   fi
    10985fi
    11086
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