VirtualBox

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


Ignore:
Timestamp:
Oct 5, 2020 7:13:05 AM (4 years ago)
Author:
vboxsync
Message:

Installer/darwin/VBoxKEXTs/postflight: Special handling on BigSur where we need to notify the user that a host reboot is required in order to be able to load the installed KEXTs, unattended installation is a futile attempt starting with this version anyway..., bugref:9836

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Installer/darwin/VBoxKEXTs/postflight

    r86291 r86449  
    8585if [[ ${MACOS_VERS} != 11.0* ]]; then
    8686    set -e
     87    kextload    '/Library/Application Support/VirtualBox/VBoxDrv.kext'
     88    kextload -d '/Library/Application Support/VirtualBox/VBoxDrv.kext'  '/Library/Application Support/VirtualBox/VBoxUSB.kext'
     89    kextload -d '/Library/Application Support/VirtualBox/VBoxDrv.kext'  '/Library/Application Support/VirtualBox/VBoxNetFlt.kext'
     90    kextload -d '/Library/Application Support/VirtualBox/VBoxDrv.kext'  '/Library/Application Support/VirtualBox/VBoxNetAdp.kext'
     91else
     92    VBOX_RC=0
     93    if ! kmutil load -b org.virtualbox.kext.VBoxDrv; then
     94        VBOX_RC=1
     95    fi
     96
     97    if ! kmutil load -b org.virtualbox.kext.VBoxUSB; then
     98        VBOX_RC=1
     99    fi
     100
     101    if ! kmutil load -b org.virtualbox.kext.VBoxNetFlt; then
     102        VBOX_RC=1
     103    fi
     104
     105    if ! kmutil load -b org.virtualbox.kext.VBoxNetAdp; then
     106        VBOX_RC=1
     107    fi
     108
     109    if [ $VBOX_RC -ne 1 ]; then
     110        osascript -e 'display dialog "A reboot is required on macOS BigSur and onwards in order to be able to load the installed kernel extensions" buttons { "Ok" } with icon caution'
     111    fi
    87112fi
    88 kextload    '/Library/Application Support/VirtualBox/VBoxDrv.kext'
    89 kextload -d '/Library/Application Support/VirtualBox/VBoxDrv.kext'  '/Library/Application Support/VirtualBox/VBoxUSB.kext'
    90 kextload -d '/Library/Application Support/VirtualBox/VBoxDrv.kext'  '/Library/Application Support/VirtualBox/VBoxNetFlt.kext'
    91 kextload -d '/Library/Application Support/VirtualBox/VBoxDrv.kext'  '/Library/Application Support/VirtualBox/VBoxNetAdp.kext'
    92 
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