VirtualBox

Changeset 72752 in vbox for trunk/src/VBox/Installer/solaris


Ignore:
Timestamp:
Jun 29, 2018 8:20:14 AM (6 years ago)
Author:
vboxsync
Message:

Installer/solaris: Try to fix version detection for newer Solaris versions and make them use ipadm approach of adapter configs.

File:
1 edited

Legend:

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

    r72295 r72752  
    237237}
    238238
    239 # get_s11_4_or_newer_sysinfo()
     239# get_s11_4_sysinfo()
    240240# cannot fail
    241 get_s11_4_or_newer_sysinfo()
     241get_s11_4_sysinfo()
    242242{
    243243    # See check in plumb_net for why this is > 174. The alternative is we declare 11.4+ as S12 with
     
    246246    HOST_OS_MAJORVERSION="11"
    247247    HOST_OS_MINORVERSION="175"
     248}
     249
     250# get_s11_5_or_newer_sysinfo()
     251# cannot fail
     252get_s11_5_or_newer_sysinfo()
     253{
     254    # See check in plumb_net for why this is 176.
     255    HOST_OS_MAJORVERSION="11"
     256    HOST_OS_MINORVERSION="176"
    248257}
    249258
     
    259268            return 0
    260269            ;;
    261         # Quick escape workaround for Solaris 11.4+, changes the pkg FMRI (yet again). See BugDB #26494983.
    262         11.4.* | 11.5.*)
    263         get_s11_4_or_newer_sysinfo
    264         return 0
     270        # Quick escape workaround for Solaris 11.4, changes the pkg FMRI (yet again). See BugDB #26494983.
     271        11.4.*)
     272            get_s11_4_sysinfo
     273            return 0
     274        # Quick escape workaround for Solaris 11.5. See BugDB #26494983.
     275        11.5.*)
     276            get_s11_5_or_newer_sysinfo
     277            return 0
    265278    esac
    266279
     
    9941007plumb_net()
    9951008{
    996     # S11 175a renames vboxnet0 as 'netX', undo this and rename it back (S12+ or S11 b175+)
    997     if test "$HOST_OS_MAJORVERSION" -gt 11 || (test "$HOST_OS_MAJORVERSION" -eq 11 && test "$HOST_OS_MINORVERSION" -gt 174); then
     1009    # S11 175a renames vboxnet0 as 'netX', undo this and rename it back (Solaris 12, Solaris 11.4 or newer)
     1010    if test "$HOST_OS_MAJORVERSION" -ge 12 || (test "$HOST_OS_MAJORVERSION" -eq 11 && test "$HOST_OS_MINORVERSION" -ge 175); then
    9981011        vanityname=`dladm show-phys -po link,device | grep vboxnet0 | cut -f1 -d':'`
    9991012        if test "$?" -eq 0 && test ! -z "$vanityname" && test "x$vanityname" != "xvboxnet0"; then
     
    10051018    fi
    10061019
    1007     # use ipadm for Solaris 12 and newer
    1008     if test "$HOST_OS_MAJORVERSION" -ge 12; then
     1020    # use ipadm for Solaris 12, Solaris 11.5 or newer
     1021    if test "$HOST_OS_MAJORVERSION" -ge 12 || (test "$HOST_OS_MAJORVERSION" -eq 11 && test "$HOST_OS_MINORVERSION" -ge 176); then
    10091022        $BIN_IPADM create-ip vboxnet0
    10101023        if test "$?" -eq 0; then
     
    10861099{
    10871100    inst=0
    1088     # use ipadm for Solaris 12 and newer
    1089     if test "$HOST_OS_MAJORVERSION" -ge 12; then
     1101    # use ipadm for Solaris 12, Solaris 11.5 or newer
     1102    if test "$HOST_OS_MAJORVERSION" -ge 12 || (test "$HOST_OS_MAJORVERSION" -eq 11 && test "$HOST_OS_MINORVERSION" -ge 176); then
    10901103        while test "$inst" -ne $MOD_VBOXNET_INST; do
    10911104            vboxnetup=`$BIN_IPADM show-addr -p -o addrobj vboxnet$inst >/dev/null 2>&1`
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