Index: /trunk/src/VBox/Installer/solaris/vboxconfig.sh
===================================================================
--- /trunk/src/VBox/Installer/solaris/vboxconfig.sh	(revision 39779)
+++ /trunk/src/VBox/Installer/solaris/vboxconfig.sh	(revision 39780)
@@ -224,4 +224,14 @@
     if test -x "$BIN_PKG"; then
         PKGFMRI=`$BIN_PKG $BASEDIR_PKGOPT contents -H -t set -a name=pkg.fmri -o pkg.fmri pkg:/system/kernel 2> /dev/null`
+        if test -z "$PKGFMRI"; then
+            # Perhaps this is old pkg without '-a' option and/or system/kernel is missing and it's part of 'entire'
+            # Try fallback.
+            PKGFMRI=`$BIN_PKG $BASEDIR_PKGOPT contents -H -t set -o pkg.fmri entire | head -1 2> /dev/null`
+            if test -z "$PKGFMRI"; then
+                # Perhaps entire is conflicting. Try using opensolaris/entire.
+                # Last fallback try.
+                PKGFMRI=`$BIN_PKG $BASEDIR_PKGOPT contents -H -t set -o pkg.fmri opensolaris.org/entire | head -1 2> /dev/null`
+            fi
+        fi
         if test ! -z "$PKGFMRI"; then
             # The format is "pkg://solaris/system/kernel@0.5.11,5.11-0.161:20110315T070332Z"
