[oi-dev] pkg5 improvements

Andrzej Szeszo aszeszo at gmail.com
Mon Jan 16 18:26:41 UTC 2012


Hi All

I have re-started getting current pkg5 codebase in shape few days ago.

I wanted to get zone support working better on top of 
illumos/OpenIndiana. It is still work in progress but linked images and 
system repository stuff seems to work OK.

I need to prevent scripts from creating zone boot environments still as 
illumos doesn't support that (rpool/zones/zone1/ROOT/zbe-1, zbe-2, 
etc.). Alternative would be to add such support. I have not looked at it 
yet.

The code lives here: https://github.com/aszeszo/pkg5

You can check it out using git or mercurial (with hg-git extension enabled):

git clone git://github.com/aszeszo/pkg5.git
hg clone git://github.com/aszeszo/pkg5.git

And then build it and generate packages by running:

cd src && make install && cd pkg && make install

Oh, one file needs to be edited manually to get linked images working 
(it is part of illumos-gate):

--- /usr/lib/brand/ipkg/config.xml.orig    Mon Jan 16 18:08:42 2012
+++ /usr/lib/brand/ipkg/config.xml    Mon Jan 16 18:08:09 2012
@@ -39,9 +39,9 @@
<!-- We may not be able to do the create in pkg(1) proper. -->
<install>/usr/lib/brand/ipkg/pkgcreatezone -z %z -R %R</install>
<installopts>a:c:d:e:hk:P:p:suv</installopts>
- <boot></boot>
+ <boot>/usr/lib/brand/ipkg/boot %z %R</boot>
<sysboot>/usr/lib/brand/ipkg/prestate %z %R 2 0</sysboot>
- <halt></halt>
+ <halt>/usr/lib/brand/ipkg/halt %z %R</halt>
<verify_cfg></verify_cfg>
<verify_adm></verify_adm>
<postclone></postclone>

Cheers,

Andrzej




More information about the oi-dev mailing list