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
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 !
$ cd pkg-gate/src $ make $ make packages
1. Edit SVR4 package location pointer to fit your environment
$ cd pkg-gate/src/util/distro-import $ vi MakefileEdit 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.
