VirtualBox

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


Ignore:
Timestamp:
Jan 17, 2012 1:54:16 PM (13 years ago)
Author:
vboxsync
Message:

Solaris/Installer: support pre-S11 pkg versions in OS version detection checks.

File:
1 edited

Legend:

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

    r39231 r39780  
    224224    if test -x "$BIN_PKG"; then
    225225        PKGFMRI=`$BIN_PKG $BASEDIR_PKGOPT contents -H -t set -a name=pkg.fmri -o pkg.fmri pkg:/system/kernel 2> /dev/null`
     226        if test -z "$PKGFMRI"; then
     227            # Perhaps this is old pkg without '-a' option and/or system/kernel is missing and it's part of 'entire'
     228            # Try fallback.
     229            PKGFMRI=`$BIN_PKG $BASEDIR_PKGOPT contents -H -t set -o pkg.fmri entire | head -1 2> /dev/null`
     230            if test -z "$PKGFMRI"; then
     231                # Perhaps entire is conflicting. Try using opensolaris/entire.
     232                # Last fallback try.
     233                PKGFMRI=`$BIN_PKG $BASEDIR_PKGOPT contents -H -t set -o pkg.fmri opensolaris.org/entire | head -1 2> /dev/null`
     234            fi
     235        fi
    226236        if test ! -z "$PKGFMRI"; then
    227237            # The format is "pkg://solaris/system/[email protected],5.11-0.161:20110315T070332Z"
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