[OmniOS-discuss] Heads up for people who want to clone the 151022 repository

Volker A. Brandt vab at bb-c.de
Fri May 12 16:28:10 UTC 2017


Hello all!


If you are like me you will want to clone the new 151022 repository
locally, and then update your systems using the local copy.

Note that a plain "pkgrecv --clone" will fail on any system not
already running 022.  This is because the packages are signed with
new certificates missing on older systems.  The symptoms are lots of
"bad signature" messages and, in the end:

  pkgrecv: Pkgrepo verify found errors in the updated repository.
  The original package catalog has been restored.
  The clone operation can be retried; package content that has already been retrieved will not be downloaded again.

Here is the workaround:

Perform a rebuild:

  pkgrepo rebuild -s <path-to-your-022-repo>

Then you can see the packages inside the repository using "pkg list".


The certificates are in the package

  pkg://omnios/web/ca-bundle@5.11-0.151022:20170510T233244Z

You need to copy OmniTI_CA2.pem and OmniTI_CA2_OmniOS.pem from the
repository and place them in the "/etc/ssl/pkg" directory.  The files
have the following hash values:

  93793132e4e2039425a415bb121e5faf26fe7785  OmniTI_CA2.pem
  654822b18d41acd317aff5ba407557638e9f1171  OmniTI_CA2_OmniOS.pem

Just unpack them directly from the repository:

  gzip -cd <path-to-your-022-repo>/publisher/omnios/file/93/93793132e4e2039425a415bb121e5faf26fe7785 > /etc/ssl/pkg/OmniTI_CA2.pem

  gzip -cd <path-to-your-022-repo>/publisher/omnios/file/65/654822b18d41acd317aff5ba407557638e9f1171 > /etc/ssl/pkg/OmniTI_CA2_OmniOS.pem

(Hope these long lines make it to the mailing list :-).

Then you can check your work with a "pkg verify".  That should just
scroll through the packages but not report any errors.


HTH -- Volker
-- 
------------------------------------------------------------------------
Volker A. Brandt               Consulting and Support for Oracle Solaris
Brandt & Brandt Computer GmbH                   WWW: http://www.bb-c.de/
Am Wiesenpfad 6, 53340 Meckenheim, GERMANY            Email: vab at bb-c.de
Handelsregister: Amtsgericht Bonn, HRB 10513              Schuhgröße: 46
Geschäftsführer: Rainer J.H. Brandt und Volker A. Brandt

"When logic and proportion have fallen sloppy dead"


More information about the OmniOS-discuss mailing list