updatecenter2
  1. updatecenter2
  2. UPDATECENTER2-725

pfexec of installer executing bootstrap removes system pkg command

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Blocker Blocker
    • Resolution: Fixed
    • Affects Version/s: 2.0-MS15
    • Fix Version/s: 2.0-MS15-RC4
    • Component/s: bootstrap
    • Labels:
      None
    • Environment:

      Operating System: Solaris
      Platform: All

    • Issuezilla Id:
      725

      Description

      Using GlassFish V3 Prelude build 27 .sh installer on OpenSolaris results in the
      system's /usr/bin/pkg command being removed.

      To reproduce:
      1) Obtain the GF V3 Prelude distribution:

      http://download.java.net/glassfish/v3/promoted/

      2) In OpenSolaris (I used build 98) run:

      % export JAVA_HOME=/usr/java or whatever is suitable.
      % pfexec <name of installer>.sh

        Activity

        Hide
        ckamps added a comment -

        Joe, I confirmed that the fix addressed this issue. I did the following:

        1) Rebuilt pkg-client.jar with your mods.
        2) Copied this jar over the same jar in the expanded Prelude .zip.
        3) cd to /
        4) pfexec ...fully qualified path../glassfishv3-prelude/bin/pkg
        5) validated /usr/bin/pkg remained intact
        6) Ensured that INSTALL_HOME/pkg worked as expected.

        We'll wait for Tom to review the code and check it in such that we can include
        it in RC4.

        Show
        ckamps added a comment - Joe, I confirmed that the fix addressed this issue. I did the following: 1) Rebuilt pkg-client.jar with your mods. 2) Copied this jar over the same jar in the expanded Prelude .zip. 3) cd to / 4) pfexec ...fully qualified path../glassfishv3-prelude/bin/pkg 5) validated /usr/bin/pkg remained intact 6) Ensured that INSTALL_HOME/pkg worked as expected. We'll wait for Tom to review the code and check it in such that we can include it in RC4.
        Hide
        Tom Mueller added a comment -

        Yes, that fix looks good.

        Show
        Tom Mueller added a comment - Yes, that fix looks good.
        Hide
        Tom Mueller added a comment -

        Integrated in trunk with revision 1245.
        Integrated in branch B15 with revision 1246.

        Show
        Tom Mueller added a comment - Integrated in trunk with revision 1245. Integrated in branch B15 with revision 1246.
        Hide
        nouar38 added a comment -

        OpenSolaris b98 (iso from genunix) vmware + nis : (no add-on just like LiveCd)
        B15 RC4 gfv2.zip and local user useradm created when the installation is done,
        could not use my own sun user.

        useradm $ uname
        SunOS muscat-14 5.11 snv_98 i86pc i386 i86pc Solaris
        $ isainfo
        amd64 i386

        $ pkg version
        1b1547cb8655

        1) unzip gfv2.zip in HOME/UC2/B15-RC4
        2) cd /
        3) type pkg
        pkg is hashed /usr/bin/pkg
        4) pkg list ==>> shows the installed opensolaris packages
        5) pfexec /export/home/useradm/UC2/B15-RC4/gfv2/bin/pkg
        6) pkg list ==>> shows the installed opensolaris packages
        7) ls -al /usr/bin/pkg
        -rwxr-xr-x 1 root bin 73797 2008-09-17 03:26 /usr/bin/pkg
        link not altered.

        $ pkg version
        1b1547cb8655

        $ /export/home/useradm/UC2/B15-RC4/gfv2/bin/pkg version
        449ee554fb1e

        Show
        nouar38 added a comment - OpenSolaris b98 (iso from genunix) vmware + nis : (no add-on just like LiveCd) B15 RC4 gfv2.zip and local user useradm created when the installation is done, could not use my own sun user. useradm $ uname SunOS muscat-14 5.11 snv_98 i86pc i386 i86pc Solaris $ isainfo amd64 i386 $ pkg version 1b1547cb8655 1) unzip gfv2.zip in HOME/UC2/B15-RC4 2) cd / 3) type pkg pkg is hashed /usr/bin/pkg 4) pkg list ==>> shows the installed opensolaris packages 5) pfexec /export/home/useradm/UC2/B15-RC4/gfv2/bin/pkg 6) pkg list ==>> shows the installed opensolaris packages 7) ls -al /usr/bin/pkg -rwxr-xr-x 1 root bin 73797 2008-09-17 03:26 /usr/bin/pkg link not altered. $ pkg version 1b1547cb8655 $ /export/home/useradm/UC2/B15-RC4/gfv2/bin/pkg version 449ee554fb1e
        Hide
        nouar38 added a comment -

        double checked with glassfish-v3-prelude-b28a-unix.sh with another user without
        any privilege.
        fix integration is ok in 28a, we don't break any more /usr/bin/pkg with pfexec
        and Installer.

        Tricky thing /usr/java links to jdk/jdk1.6.0.06 but only jre is installed,
        so added SUNWj6dev package.

        Show
        nouar38 added a comment - double checked with glassfish-v3-prelude-b28a-unix.sh with another user without any privilege. fix integration is ok in 28a, we don't break any more /usr/bin/pkg with pfexec and Installer. Tricky thing /usr/java links to jdk/jdk1.6.0.06 but only jre is installed, so added SUNWj6dev package.

          People

          • Assignee:
            Tom Mueller
            Reporter:
            ckamps
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: