Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6409834

SUNWj6rt postinstall script issue with smosservice and diskless client setup in nevada.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 6
    • solaris_11, 6
    • install
    • b81
    • generic, sparc
    • solaris_nevada
    • Not verified

      This is found in snv_36 and this impacts smosservice setup with diskless client. When you try to add diskless client service with smosservice, SUNWj6rt had issue with the postinstall script as follow, this is run with pkginstall in -v mode:

      Doing pkgadd of SUNWj6rt to /export/Solaris_11.
      NAME=i.none
      FILELIST=/export/Solaris_11/var/sadm/pkg/SUNWj6rt/save/filelist
      BD=/export/Solaris_11/usr_sparc.all/usr
      is_an_archive=0
      is_a_filelist=0
      list_empty=1
      local_install=0
      Spcl_init=0
      Rm_alt_sav=0
      Tmp_xpath=/usr/tmp99dir
      MV_xpath=/usr/bin
      MV_cmd=/usr/bin/mv
      CPIO_xpath=/usr/bin
      ( a big list of output )

      + read path
      + [ ! -x /usr/bin/bzcat ]
      + [ 1 -eq 1 ]
      + /usr/bin/cpio -C 512 -idukm -E /export/Solaris_11/var/sadm/pkg/SUNWj6rt/save/f
      ilelist
      + /usr/bin/bzcat /net/ins3525-svr/export/nv/solarisdvd.nvs_dvd/36test/Solaris_11
      /Product/SUNWj6rt/archive/none.bz2
      186580 blocks
      status=0
      + [ 0 -ne 0 ]
      + [ -f /export/Solaris_11/var/sadm/pkg/SUNWj6rt/save/filelist ]
      + /usr/bin/rm /export/Solaris_11/var/sadm/pkg/SUNWj6rt/save/filelist
      + [ 0 -eq 1 ]
      + exit 0
      INSTALLF=installf
      RM=rm
      LN=ln
      CP=cp
      MKDIR=mkdir
      CHMOD=chmod
      CHOWN=chown
      CHGRP=chgrp
      SED=sed
      + [ /export/Solaris_11 != ]
      INSTALLF=installf -R /export/Solaris_11
      + sed -e s/\/.*//
      + echo 1.6.0/1.6.0-beta2-b75
      PRODVERS=1.6.0
      + sed -e s/_.*//
      + echo 1.6.0
      PRODVERS_NP=1.6.0
      PREFIX=jdk
      REGISTRY_DIR=jdk
      REGISTRY_PATH=/export/Solaris_11/usr_sparc.all/usr/jdk
      REGISTRY_ENTRY=jdk1.6.0
      REGISTRY_NAME=/export/Solaris_11/usr_sparc.all/usr/jdk/jdk1.6.0
      INSTALL_DIR=instances
      INSTALL_PATH=/export/Solaris_11/usr_sparc.all/usr/jdk/instances
      INSTALL_ENTRY=jdk1.6.0
      INSTALL_NAME=/export/Solaris_11/usr_sparc.all/usr/jdk/instances/jdk1.6.0
      J2SE_PATH=/export/Solaris_11/usr_sparc.all/usr/j2se
      JAVA_PATH=/export/Solaris_11/usr_sparc.all/usr/java
      CLIENT_JAVA_PATH=/usr_sparc.all/usr/java
      LATEST_PATH=/export/Solaris_11/usr_sparc.all/usr/jdk/latest
      BIN_PATH=/export/Solaris_11/usr_sparc.all/usr/bin
      BIN_JAVA=/export/Solaris_11/usr_sparc.all/usr/bin/java
      BIN_JAVAWS=/export/Solaris_11/usr_sparc.all/usr/bin/javaws
      JAVA_LINK_VALUE=jdk/jdk1.6.0
      LATEST_LINK_VALUE=jdk1.6.0
      JDK_ICONS=/export/Solaris_11/usr_sparc.all/usr/jdk/instances/jdk1.6.0/jre/lib/im
      ages/icons
      SHARE_PATH=/export/Solaris_11/usr_sparc.all/usr/share
      SHARE_DEFAULT=/export/Solaris_11/usr_sparc.all/usr/share/pixmaps
      SHARE_HIGH_CONTRAST=/export/Solaris_11/usr_sparc.all/usr/share/icons/HighContras
      t/48x48/apps
      SHARE_HIGH_CONTRAST_INVERSE=/export/Solaris_11/usr_sparc.all/usr/share/icons/Hig
      hContrastInverse/48x48/apps
      SHARE_LOW_CONTRAST=/export/Solaris_11/usr_sparc.all/usr/share/icons/LowContrast/
      48x48/apps
      MIME_PATH=/export/Solaris_11/usr_sparc.all/usr/share/gnome/mime-info
      APPS_PATH=/export/Solaris_11/usr_sparc.all/usr/share/gnome/application-registry
      REL_JAVAWS=bin/javaws
      REL_JAVAWS_GOOFY=jre/bin/javaws
      REL_JAVAWS_OLD=jre/javaws/javaws
      DEFAULT_MIN=
      DEFAULT_MAX=

      + [ 1 = 0 ]
      + sed -e s/^\.\///g
      + echo /export/Solaris_11/usr_sparc.all/usr/jdk/instances/jdk1.5.0
      link=/export/Solaris_11/usr_sparc.all/usr/jdk/instances/jdk1.5.0
      + [ -h /export/Solaris_11/usr_sparc.all/usr/jdk/instances/jdk1.5.0 ]
      + echo /export/Solaris_11/usr_sparc.all/usr/jdk/instances/jdk1.5.0
      + return 0
      target=/export/Solaris_11/usr_sparc.all/usr/jdk/instances/jdk1.5.0
      + [ /export/Solaris_11/usr_sparc.all/usr/jdk/instances/jdk1.5.0 = /export/Solari
      s_11/usr_sparc.all/usr/jdk/instances/jdk1.6.0 ]
      + ln -s instances/jdk1.6.0 /export/Solaris_11/usr_sparc.all/usr/jdk/jdk1.6.0
      + SetJavaLink
      + [ ! -f /export/Solaris_11/usr_sparc.all/usr/java ]
      + [ ! -d /export/Solaris_11/usr_sparc.all/usr/java ]
      + [ ! -h /export/Solaris_11/usr_sparc.all/usr/java ]
      + FollowLink /export/Solaris_11/usr_sparc.all/usr/java
      link=/export/Solaris_11/usr_sparc.all/usr/java
      + [ -h /export/Solaris_11/usr_sparc.all/usr/java ]
      + ls -l /export/Solaris_11/usr_sparc.all/usr/java
      ls=lrwxrwxrwx 1 root other 17 Apr 3 17:35 /export/Solaris_11/usr_
      sparc.all/usr/java -> jdk/j2sdk1.4.2_06
      + dirname /export/Solaris_11/usr_sparc.all/usr/java
      + cut -f 11 -d
      + echo lrwxrwxrwx 1 root other 17 Apr 3 17:35 /export/Solaris_11/usr_sparc.all/u
      sr/java -> jdk/j2sdk1.4.2_06
      link=/export/Solaris_11/usr_sparc.all/usr/jdk/j2sdk1.4.2_06
      + grep \/\.\/
      + echo /export/Solaris_11/usr_sparc.all/usr/jdk/j2sdk1.4.2_06
      + [ 1 = 0 ]
      + grep [^\/]*\/\.\.\/
      + echo /export/Solaris_11/usr_sparc.all/usr/jdk/j2sdk1.4.2_06
      + [ 1 = 0 ]
      + sed -e s/^\.\///g
      + echo /export/Solaris_11/usr_sparc.all/usr/jdk/j2sdk1.4.2_06
      link=/export/Solaris_11/usr_sparc.all/usr/jdk/j2sdk1.4.2_06
      + [ -h /export/Solaris_11/usr_sparc.all/usr/jdk/j2sdk1.4.2_06 ]
      + ls -l /export/Solaris_11/usr_sparc.all/usr/jdk/j2sdk1.4.2_06
      ls=lrwxrwxrwx 1 root other 7 Apr 3 17:35 /export/Solaris_11/usr_
      sparc.all/usr/jdk/j2sdk1.4.2_06 -> ../j2se
      + dirname /export/Solaris_11/usr_sparc.all/usr/jdk/j2sdk1.4.2_06
      + cut -f 11 -d
      + echo lrwxrwxrwx 1 root other 7 Apr 3 17:35 /export/Solaris_11/usr_sparc.all/us
      r/jdk/j2sdk1.4.2_06 -> ../j2se
      link=/export/Solaris_11/usr_sparc.all/usr/jdk/../j2se
      + grep \/\.\/
      + echo /export/Solaris_11/usr_sparc.all/usr/jdk/../j2se
      + [ 1 = 0 ]
      + grep [^\/]*\/\.\.\/
      + echo /export/Solaris_11/usr_sparc.all/usr/jdk/../j2se
      + [ 0 = 0 ]
      + sed -e s/[^\/]*\/\.\.\///g
      + echo /export/Solaris_11/usr_sparc.all/usr/jdk/../j2se
      link=/export/Solaris_11/usr_sparc.all/usr/j2se
      + grep [^\/]*\/\.\.
      + echo /export/Solaris_11/usr_sparc.all/usr/j2se
      + [ 1 = 0 ]
      + sed -e s/^\.\///g
      + echo /export/Solaris_11/usr_sparc.all/usr/j2se
      link=/export/Solaris_11/usr_sparc.all/usr/j2se
      + [ -h /export/Solaris_11/usr_sparc.all/usr/j2se ]
      + echo /export/Solaris_11/usr_sparc.all/usr/j2se
      + return 0
      path=/export/Solaris_11/usr_sparc.all/usr/j2se
      + [ ! -x /export/Solaris_11/usr_sparc.all/usr/j2se/bin/java ]
      + GetDefaultRange
      + [ -f /export/Solaris_11/etc/default/default_java ]
      + [ -f /export/Solaris_11/var/sadm/system/admin/default_java ]
      + [ = ]
      + GetHostRelease
      + [ -f /export/Solaris_11/var/sadm/system/admin/INST_RELEASE ]
      + grep ^VERSION= /export/Solaris_11/var/sadm/system/admin/INST_RELEASE
      ver=VERSION=11
      + sed -e s/[^0-9]*// -e s/^2\.// -e s/\..*//
      + echo VERSION=11
      ver=11
      + echo 11
      release=11
      + [ = ]
      DEFAULT_MAX=
      + ExpandPrefix
      + echo
      + awk {FS="."; printf "%d.%d.%d_%.2d\n", $1, $2, $3, $4}
      + sed -e s/_/\./g
      DEFAULT_MIN=0.0.0_00
      + ExpandPrefixInfinity
      + echo
      + awk {FS="."; \
              if ($1 == "") major=9999; else major=$1; \
              if ($2 == "") minor=9999; else minor=$2; \
              if ($3 == "") micro=9999; else micro=$3; \
              if ($4 == "") patch=9999; else patch=$4; \
              printf "%d.%d.%d_%.2d\n", major, minor, micro, patch}
      + sed -e s/_/\./g
      DEFAULT_MAX=9999.9999.9999_9999
      + return 0
      + basename /export/Solaris_11/usr_sparc.all/usr/j2se
      current_dir=j2se
      + [ j2se = j2se ]
      + ExpandPrefixInfinity 1.4
      + echo 1.4
      + awk {FS="."; \
              if ($1 == "") major=9999; else major=$1; \
             if ($2 == "") minor=9999; else minor=$2; \
              if ($3 == "") micro=9999; else micro=$3; \
              if ($4 == "") patch=9999; else patch=$4; \
              printf "%d.%d.%d_%.2d\n", major, minor, micro, patch}+ sed -e
       s/_/\./g
      current_tuple=1.4.9999_9999
      + ExpandPrefix 1.6.0
      + echo 1.6.0
      + awk {FS="."; printf "%d.%d.%d_%.2d\n", $1, $2, $3, $4}
      + sed -e s/_/\./g
      prodver_tuple=1.6.0_00
      + RelCmp 1.4.9999_9999 0.0.0_00
      + sed -e s/-.*// -e s/_/\./g
      + echo 1.4.9999_9999
      r1=1.4.9999.9999
      + sed -e s/-.*// -e s/_/\./g
      + echo 0.0.0_00
      r2=0.0.0.00
      + [ 1.4.9999.9999 = 0.0.0.00 ]
      + printf %s\n%s\n 1.4.9999.9999 0.0.0.00
      + head -1
      + sort -t . -k 1,1n -k 2,2n -k 3,3n -k 4,4n
      lrel=0.0.0.00
      + [ 1.4.9999.9999 = 0.0.0.00 ]
      + echo gt
      + RelCmp 1.4.9999_9999 9999.9999.9999_9999
      + sed -e s/-.*// -e s/_/\./g
      + echo 1.4.9999_9999
      r1=1.4.9999.9999
      + sed -e s/-.*// -e s/_/\./g
      + echo 9999.9999.9999_9999
      r2=9999.9999.9999.9999
      + [ 1.4.9999.9999 = 9999.9999.9999.9999 ]
      + printf %s\n%s\n 1.4.9999.9999 9999.9999.9999.9999
      + head -1
      + sort -t . -k 1,1n -k 2,2n -k 3,3n -k 4,4n
      lrel=1.4.9999.9999
      + [ 1.4.9999.9999 = 1.4.9999.9999 ]
      + echo lt
      + RelCmp 1.6.0_00 0.0.0_00
      + sed -e s/-.*// -e s/_/\./g
      + echo 1.6.0_00
      r1=1.6.0.00
      + sed -e s/-.*// -e s/_/\./g
      + echo 0.0.0_00
      r2=0.0.0.00
      + [ 1.6.0.00 = 0.0.0.00 ]
      + printf %s\n%s\n 1.6.0.00 0.0.0.00
      + head -1
      + sort -t . -k 1,1n -k 2,2n -k 3,3n -k 4,4n
      lrel=0.0.0.00
      + [ 1.6.0.00 = 0.0.0.00 ]
      + echo gt
      + RelCmp 1.6.0_00 9999.9999.9999_9999
      + sed -e s/-.*// -e s/_/\./g
      + echo 1.6.0_00
      r1=1.6.0.00
      + sed -e s/-.*// -e s/_/\./g
      + echo 9999.9999.9999_9999
      r2=9999.9999.9999.9999
      + [ 1.6.0.00 = 9999.9999.9999.9999 ]
      + printf %s\n%s\n 1.6.0.00 9999.9999.9999.9999
      + head -1
      + sort -t . -k 1,1n -k 2,2n -k 3,3n -k 4,4n
      lrel=1.6.0.00
      + [ 1.6.0.00 = 1.6.0.00 ]
      + echo lt
      + [ ( gt = lt -o lt = gt ) -a ( gt != lt -a lt != gt ) ]
      + ls -l /export/Solaris_11/usr_sparc.all/usr/java
      ls=lrwxrwxrwx 1 root other 17 Apr 3 17:35 /export/Solaris_11/usr_
      sparc.all/usr/java -> jdk/j2sdk1.4.2_06
      + cut -f 11 -d
      + echo lrwxrwxrwx 1 root other 17 Apr 3 17:35 /export/Solaris_11/usr_sparc.all/u
      sr/java -> jdk/j2sdk1.4.2_06
      target=jdk/j2sdk1.4.2_06
      + dirname /export/Solaris_11/usr_sparc.all/usr/java
      + dirname jdk/j2sdk1.4.2_06
      link=/export/Solaris_11/usr_sparc.all/usr/jdk
      + sed -e s:/\./:/:g -e s:[^/]*/\.\./::g
      + echo /export/Solaris_11/usr_sparc.all/usr/jdk
      link=/export/Solaris_11/usr_sparc.all/usr/jdk
      + [ /export/Solaris_11/usr_sparc.all/usr/jdk != /export/Solaris_11/usr_sparc.all
      /usr/jdk ]
      + basename jdk/j2sdk1.4.2_06
      target=j2sdk1.4.2_06
      + GetRel j2sdk1.4.2_06
      + cut -c 1-3
      + echo j2sdk1.4.2_06
      + [ j2s = jdk ]
      + cut -c 1-3
      + echo j2sdk1.4.2_06
      + [ j2s = jre ]
      + cut -c 1-4
      + echo j2sdk1.4.2_06
      + [ j2sd = j2re ]
      + cut -c 1-5
      + echo j2sdk1.4.2_06
      + [ j2sdk = j2sdk ]
      + cut -c 6-
      + echo j2sdk1.4.2_06
      current_tuple=1.4.2_06
      + GetMicro 1.6.0_00
      + echo 1.6.0_00
      + awk {FS="."; printf "%s.%s.%s", $1, $2, $3}
      + sed -e s/[-_].*//
      + echo 1.6.0
      + GetMicro 1.4.2_06
      + echo 1.4.2_06
      + awk {FS="."; printf "%s.%s.%s", $1, $2, $3}
      + sed -e s/[-_].*//
      + echo 1.4.2
      + [ 1.6.0 = 1.4.2 ]
      + return 1
      default_flag=false
      + SetLatestLink
      + [ ! -h /export/Solaris_11/usr_sparc.all/usr/jdk/latest ]
      + [ ! -h /export/Solaris_11/usr_sparc.all/usr/jdk/latest ]
      + FollowLink /export/Solaris_11/usr_sparc.all/usr/jdk/latest
      link=/export/Solaris_11/usr_sparc.all/usr/jdk/latest
      + [ -h /export/Solaris_11/usr_sparc.all/usr/jdk/latest ]
      + ls -l /export/Solaris_11/usr_sparc.all/usr/jdk/latest
      ls=lrwxrwxrwx 1 root other 11 Apr 3 17:35 /export/Solaris_11/usr_
      sparc.all/usr/jdk/latest -> jdk1.5.0_06
      + dirname /export/Solaris_11/usr_sparc.all/usr/jdk/latest
      + cut -f 11 -d
      + echo lrwxrwxrwx 1 root other 11 Apr 3 17:35 /export/Solaris_11/usr_sparc.all/u
      sr/jdk/latest -> jdk1.5.0_06
      link=/export/Solaris_11/usr_sparc.all/usr/jdk/jdk1.5.0_06
      + grep \/\.\/
      + echo /export/Solaris_11/usr_sparc.all/usr/jdk/jdk1.5.0_06
      + [ 1 = 0 ]
      + grep [^\/]*\/\.\.\/
      + echo /export/Solaris_11/usr_sparc.all/usr/jdk/jdk1.5.0_06
      + [ 1 = 0 ]
      + sed -e s/^\.\///g
      + echo /export/Solaris_11/usr_sparc.all/usr/jdk/jdk1.5.0_06
      link=/export/Solaris_11/usr_sparc.all/usr/jdk/jdk1.5.0_06
      + [ -h /export/Solaris_11/usr_sparc.all/usr/jdk/jdk1.5.0_06 ]
      + ls -l /export/Solaris_11/usr_sparc.all/usr/jdk/jdk1.5.0_06
      ls=lrwxrwxrwx 1 root other 18 Apr 3 17:35 /export/Solaris_11/usr_
      sparc.all/usr/jdk/jdk1.5.0_06 -> instances/jdk1.5.0
      + dirname /export/Solaris_11/usr_sparc.all/usr/jdk/jdk1.5.0_06
      + cut -f 11 -d
      + echo lrwxrwxrwx 1 root other 18 Apr 3 17:35 /export/Solaris_11/usr_sparc.all/u
      sr/jdk/jdk1.5.0_06 -> instances/jdk1.5.0
      link=/export/Solaris_11/usr_sparc.all/usr/jdk/instances/jdk1.5.0
      + grep \/\.\/
      + echo /export/Solaris_11/usr_sparc.all/usr/jdk/instances/jdk1.5.0
      + [ 1 = 0 ]
      + grep [^\/]*\/\.\.\/
      + echo /export/Solaris_11/usr_sparc.all/usr/jdk/instances/jdk1.5.0
      + [ 1 = 0 ]
      + sed -e s/^\.\///g
      + echo /export/Solaris_11/usr_sparc.all/usr/jdk/instances/jdk1.5.0
      link=/export/Solaris_11/usr_sparc.all/usr/jdk/instances/jdk1.5.0
      + [ -h /export/Solaris_11/usr_sparc.all/usr/jdk/instances/jdk1.5.0 ]
      + echo /export/Solaris_11/usr_sparc.all/usr/jdk/instances/jdk1.5.0
      + return 0
      path=/export/Solaris_11/usr_sparc.all/usr/jdk/instances/jdk1.5.0
      + [ ! -x /export/Solaris_11/usr_sparc.all/usr/jdk/instances/jdk1.5.0/bin/java ]
      + basename /export/Solaris_11/usr_sparc.all/usr/jdk/instances/jdk1.5.0
      current_dir=jdk1.5.0
      + GetRel jdk1.5.0
      + cut -c 1-3
      + echo jdk1.5.0
      + [ jdk = jdk ]
      + cut -c 4-
      + echo jdk1.5.0
      current_rel=1.5.0
      + ExpandPrefix 1.5.0
      + echo 1.5.0
      + awk {FS="."; printf "%d.%d.%d_%.2d\n", $1, $2, $3, $4}
      + sed -e s/_/\./g
      current_tuple=1.5.0_00
      + ExpandPrefix 1.6.0
      + echo 1.6.0
      + awk {FS="."; printf "%d.%d.%d_%.2d\n", $1, $2, $3, $4}
      + sed -e s/_/\./g
      prodver_tuple=1.6.0_00
      + RelCmp 1.5.0_00 1.6.0_00
      + sed -e s/-.*// -e s/_/\./g
      + echo 1.5.0_00
      r1=1.5.0.00
      + sed -e s/-.*// -e s/_/\./g
      + echo 1.6.0_00
      r2=1.6.0.00

      + installf -R /export/Solaris_11 -c none SUNWj6rt /export/Solaris_11/usr_sparc.a
      ll/usr/share/control-center-2.0/capplets d 0755 root other
      + installf -R /export/Solaris_11 -f SUNWj6rt
      + AssociateWithDesktop false /export/Solaris_11/usr_sparc.all/usr/share/control-
      center-2.0/capplets
      _default_flag=false
      _dir=/export/Solaris_11/usr_sparc.all/usr/share/control-center-2.0/capplets
      + [ false = true ]
      + [ ! -f /export/Solaris_11/usr_sparc.all/usr/share/pixmaps/sun-jcontrol.png ]
      + cp /usr_sparc.all/usr/java/jre/plugin/desktop/sun_java.png /export/Solaris_11/
      usr_sparc.all/usr/share/pixmaps/sun-jcontrol.png
      cp: cannot access /usr_sparc.all/usr/java/jre/plugin/desktop/sun_java.png
      + installf -R /export/Solaris_11 -c none SUNWj6rt /export/Solaris_11/usr_sparc.a
      ll/usr/share/pixmaps/sun-jcontrol.png e 0644 root other
      + installf -R /export/Solaris_11 -c none SUNWj6rt /export/Solaris_11/usr_sparc.a
      ll/usr/jdk/instances/jdk1.6.0/jre/lib/sparc/client/classes.jsa
      + installf -R /export/Solaris_11 -f SUNWj6rt
      ERROR: attribute verification of </export/Solaris_11/usr_sparc.all/usr/share/pix
      maps/sun-jcontrol.png> failed
          pathname does not exist
      + exit 0

      Installation of <SUNWj6rt> was successful.


      I had included the SUNWj6rt pkgadd as attachment for further examination.

            mromanchsunw Michael Romanchuk (Inactive)
            mmding Mary Ding (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: