VirtualBox

Changeset 94390 in vbox for trunk


Ignore:
Timestamp:
Mar 29, 2022 10:28:58 AM (3 years ago)
Author:
vboxsync
Message:

Additions/solaris/Installer: The Solaris VBox GAs postinstall.sh script
can fail to wait for both of the SMF services, virtualbox/vboxservice
and virtualbox/vboxmslnk, to be imported due to a bug in svcs(1) (bugDB
33991799). This causes an error when svcadm(1) then attempts to enable
a not-yet present service. An easy workaround is to use 'svcs
vboxservice && svcs vboxmslnk' rather than 'svcs vboxservice vboxmslnk'
to check that both SMF services have been successfully imported.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/solaris/Installer/postinstall.sh

    r93662 r94390  
    368368    # 1 second intervals to see if our service has been successfully imported and timeout after 'cmax' seconds.
    369369    /usr/sbin/svcadm restart svc:system/manifest-import:default
    370     /usr/bin/svcs virtualbox/vboxservice virtualbox/vboxmslnk >/dev/null 2>&1
     370    /usr/bin/svcs virtualbox/vboxservice >/dev/null 2>&1 && /usr/bin/svcs virtualbox/vboxmslnk >/dev/null 2>&1
    371371    while test "$?" -ne 0;
    372372    do
     
    377377            break
    378378        fi
    379         /usr/bin/svcs virtualbox/vboxservice virtualbox/vboxmslnk >/dev/null 2>&1
     379        /usr/bin/svcs virtualbox/vboxservice >/dev/null 2>&1 && /usr/bin/svcs virtualbox/vboxmslnk >/dev/null 2>&1
    380380    done
    381381    if test "$success" -eq 0; then
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