How to create OpenSolaris distribution from your local repository

The Distribution Constructor uses your local repository to create OpenSolaris


System Requirements

The Distribution Constructor requires the following setup:

1.  OpenSolaris 2008.11

The OpenSolaris 2008.11 release must be installed on your system.
Note: In order to use the distribution constructor, you must have root access
on your system.

2.  pkg-gate source tree

hg clone ssh://anon@hg.opensolaris.org/hg/pkg/gate pkg-gate

Note: package SUNWmercurial is necessary to download pkg-gate from mercurial.
For installation run:

$ pfexec pkg install SUNWmercurial

3.  Required packages

These packages are required:

  • SUNWipkg
  • SUNWgnome-common-devel
  • sunstudioexpress
  • SUNWdistro-const
  • SUNWpython-setuptools - see bug 5462
You can use the Package Manager tool to install the required packages.
Alternately, use IPS commands such as the following to install these packages:
$ pfexec pkg install SUNWdistro-const

4.  Access to the SWAN

Your installed system must have access to the internal network - SWAN !


Building pkg-gate
$ cd pkg-gate/src
$ make
$ make packages

Start an empty repository

You can find How to start an empty repository here.


Import SVR4 packages into the repository

1. Edit SVR4 package location pointer to fit your environment
$ cd pkg-gate/src/util/distro-import
$ vi Makefile
Edit these lines in Makefile as needed to point your places of packages.
WOS_PKGS=/$(NEVADA_BUILD)/Solaris_11/Product
NONWOS_PKGS=/net/paradise.sfbay/export/integrate_dock/nv/nv_osol0811/i386/

Also edit this line in the Makefile to point your local repository.
REPO=http://localhost:10000
2. Do import

To import the Live CD packages only:

$ make

To import all packages:

$ make {BUILD_ID}/redist_import

After a several hours local repository is created. Now you can publish any packages into your local repository and edit the Distribution Constructor's Manifest file as necessary. How to change the Manifest file and how to use Distribution Constructor you can find here.

Comments:

Post a Comment:
  • HTML Syntax: NOT allowed
About

Solaris l10n & i18n, locales, keyboards, fonts and related topics.

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today