Re: [oi-dev] How to create an ISO correctly?

2019-08-27 Thread Gary Mills
On Tue, Aug 27, 2019 at 10:06:11AM +0300, Toomas Soome via oi-dev wrote:
>On 27 Aug 2019, at 00:46, Gary Mills <[1]gary_mi...@fastmail.fm> wrote:
> 
> >  Finally, how do I create a USB image from the CD image?
> 
>it is generated from iso with help of
>/usr/share/distro_const/create_usb, which in turn is using /bin/usbgen,
>but at this time, it is all about x86. So the SPARC updates have to be
>implemented still. The code is
>in [4]https://github.com/OpenIndiana/slim_source.

I built slim_source on SPARC, except for the GUI parts.  I see both
create_iso and create_usb scripts in /usr/share/distro_const .  The
only platform-specific code is in create_iso .  I'll find out how they
work when I run distro_const, I suppose.


-- 
-Gary Mills--refurb--Winnipeg, Manitoba, Canada-

___
oi-dev mailing list
oi-dev@openindiana.org
https://openindiana.org/mailman/listinfo/oi-dev


Re: [oi-dev] How to create an ISO correctly?

2019-08-27 Thread Gary Mills
On Tue, Aug 27, 2019 at 08:56:54AM +0200, Volker A. Brandt wrote:
> 
> Have you looked at the XML files in the /usr/share/distro_const tree?
> Maybe it is enough just to replace the current publisher and origin
> with the values of your new repository?

Yes, that apparently works.

> Not sure if I understand this... you have installed lots of oi-userland
> packages but your publisher is still v9os?  Surely you *also* have 
> oi-userland as a publisher.  Just delete all references to v9os.

This is my publisher on the host system now:

# pkg publisher
PUBLISHER   TYPE STATUS P LOCATION
oi-userland origin   online F 
file:///export/home/mills/Downloads/code/oi-userland/sparc/repo/
v9os   (non-sticky) origin   online F file:///data/ips/

Yes, I can delete the v9os publisher now, leaving only oi-userland .
It's still not the same as the publisher on the ISO, though.  I
understand that the two being different is quite normal.

> If all else fails you can manually edit the "master" file located in
> /var/pkg/pkg5.image, clean all the caches and do a "pkg refresh --full".
> That might kill your kitten^WT2000 though.  YMMV :-)

I understand that there are pkg commands that will make changes to the
file repositories with less risk to the kitten.  I do want to publish
the repository along with the ISO, just as done with v9os.  The two of
them have to work together.  That's why I enquired about changing the
publisher that's stated in the file repostory.


-- 
-Gary Mills--refurb--Winnipeg, Manitoba, Canada-

___
oi-dev mailing list
oi-dev@openindiana.org
https://openindiana.org/mailman/listinfo/oi-dev


Re: [oi-dev] How to create an ISO correctly?

2019-08-27 Thread Aurélien Larcher
On Tue, Aug 27, 2019 at 3:16 PM Gary Mills  wrote:

> On Mon, Aug 26, 2019 at 11:58:42PM +0200, Aurélien Larcher wrote:
> >
> >If you look at:
> >[4]
> https://hipster.openindiana.org/distro_const/text_mode_x86-minimal.x
> >ml
> >pkg_repo_default_authority specifies the repository from which the
> >packages are pulled and thus the image created, while
> >post_install_repo_default_authority stands for the default publisher
> >configured on the ISO itself.
>
> So, they can be different.  That makes it easy for me.
>
> Is that the same as:
>
> /usr/share/distro_const/text_install/text_mode_x86_minimal.xml
>
> which was installed when I installed the distribution-constructor
> package?
>

Probably fairly similar.



>
> What should be the publisher name?  I see that it's openindiana.org in
> the /usr/share/distro_const/text*.xml files.
>

The actual publisher name defined in the pkg repository.
By default for a local repository this would be 'userland'.

>
> >There are packages like this that can be published from metapackage/
> >components.
> >For regular Jenkins jobs `gmake -C components incorporation` is called
> >after publication of new packages to generate such meta-packages.
>
> Thanks.  I'll look into that procedure.
>
> >At least on x86 both usb images and cd iso are created by
> distro_const.
>
> I suppose I'll find out the first time I run it.
>
>
> --
> -Gary Mills--refurb--Winnipeg, Manitoba,
> Canada-
>


-- 
---
Praise the Caffeine embeddings
___
oi-dev mailing list
oi-dev@openindiana.org
https://openindiana.org/mailman/listinfo/oi-dev


Re: [oi-dev] How to create an ISO correctly?

2019-08-27 Thread Gary Mills
On Mon, Aug 26, 2019 at 11:58:42PM +0200, Aurélien Larcher wrote:
> 
>If you look at:
>[4]https://hipster.openindiana.org/distro_const/text_mode_x86-minimal.x
>ml
>pkg_repo_default_authority specifies the repository from which the
>packages are pulled and thus the image created, while
>post_install_repo_default_authority stands for the default publisher
>configured on the ISO itself.

So, they can be different.  That makes it easy for me.

Is that the same as:

/usr/share/distro_const/text_install/text_mode_x86_minimal.xml

which was installed when I installed the distribution-constructor
package?

What should be the publisher name?  I see that it's openindiana.org in
the /usr/share/distro_const/text*.xml files.

>There are packages like this that can be published from metapackage/
>components.
>For regular Jenkins jobs `gmake -C components incorporation` is called
>after publication of new packages to generate such meta-packages.

Thanks.  I'll look into that procedure.

>At least on x86 both usb images and cd iso are created by distro_const.

I suppose I'll find out the first time I run it.


-- 
-Gary Mills--refurb--Winnipeg, Manitoba, Canada-

___
oi-dev mailing list
oi-dev@openindiana.org
https://openindiana.org/mailman/listinfo/oi-dev


Re: [oi-dev] How to create an ISO correctly?

2019-08-27 Thread Toomas Soome via oi-dev


> On 27 Aug 2019, at 00:46, Gary Mills  wrote:
> 
> Another progress report and some questions: I have now replaced all
> v9os packages with oi-userland packages.  There are no v9os packages
> left.  My T2000 has only oi-userland packages, ones that I have built.
> It boots correctly.  The publisher name is oi-userland, not the usual
> userland or openindiana.org .  That difference raises my first
> question.
> 
> I've read the information on distribution-constructor:
> 
>http://docs.openindiana.org/dev/distribution-constructor/
> 
> as well as the man page for distro_const .  Neither of them answered
> my questions completely.
> 
> Will distro_const change the publisher in the ISO file, both for the
> packages and the `pkg publisher' command?  How do I do this?

Those are set in DC xml manifest file, see

pkg_repo_default_authority
post_install_repo_default_authority

> 
> If not, can the publisher be changed on the host system?  Does the
> publisher in `pkg publisher' have to match the one in the file
> repository?
> 
> I see that the XML file used by distro_const specifies `entire' as the
> package that includes all the packages to install to the ISO file.
> My system has no package `entire'.  How do I create and populate it?
> Will it include some packages that do not exist?  Will this be a
> problem?
> 
> Finally, how do I create a USB image from the CD image?
> 


it is generated from iso with help of /usr/share/distro_const/create_usb, which 
in turn is using /bin/usbgen, but at this time, it is all about x86. So the 
SPARC updates have to be implemented still. The code is in 
https://github.com/OpenIndiana/slim_source 
.

rgds,
toomas

___
oi-dev mailing list
oi-dev@openindiana.org
https://openindiana.org/mailman/listinfo/oi-dev


Re: [oi-dev] How to create an ISO correctly?

2019-08-27 Thread Volker A. Brandt
Hi Gary!


> Another progress report and some questions: I have now replaced all
> v9os packages with oi-userland packages.  There are no v9os packages
> left.  My T2000 has only oi-userland packages, ones that I have built.

Nice!

> It boots correctly.  The publisher name is oi-userland, not the usual
> userland or openindiana.org .  That difference raises my first
> question.
> 
> I've read the information on distribution-constructor:
> 
> http://docs.openindiana.org/dev/distribution-constructor/
> 
> as well as the man page for distro_const .  Neither of them answered
> my questions completely.
> 
> Will distro_const change the publisher in the ISO file, both for the
> packages and the `pkg publisher' command?  How do I do this?

Good question!  Haven't used the Distro Constructor for years...

Have you looked at the XML files in the /usr/share/distro_const tree?
Maybe it is enough just to replace the current publisher and origin
with the values of your new repository?

> If not, can the publisher be changed on the host system?  Does the
> publisher in `pkg publisher' have to match the one in the file
> repository?

Not sure if I understand this... you have installed lots of oi-userland
packages but your publisher is still v9os?  Surely you *also* have 
oi-userland as a publisher.  Just delete all references to v9os.

If all else fails you can manually edit the "master" file located in
/var/pkg/pkg5.image, clean all the caches and do a "pkg refresh --full".
That might kill your kitten^WT2000 though.  YMMV :-)

> I see that the XML file used by distro_const specifies `entire' as the
> package that includes all the packages to install to the ISO file.
> My system has no package `entire'.  How do I create and populate it?
> Will it include some packages that do not exist?  Will this be a
> problem?

The "entire" package just lists all consolidations as dependencies.  If
you have a file with all the consolidation names, it could be generated
by a script.  Look at some examples (don't have an OI system running
ATM).  The lines basically have the format

  depend fmri= type=

where  is "require" when the consolidation must be installed, and
"incorporate" when just the matching version is specified. (Someone more
knowledgeable with IPS please correct me if I'm wrong please.)

> Finally, how do I create a USB image from the CD image?

Another good question.  Not sure if this is possible for SPARC.


Regards -- Volker
-- 

Volker A. BrandtConsulting and Support for Solaris-based Systems
Brandt & Brandt Computer GmbH   WWW: http://www.bb-c.de/
Am Wiesenpfad 6, 53340 Meckenheim, GERMANYEmail: v...@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"

___
oi-dev mailing list
oi-dev@openindiana.org
https://openindiana.org/mailman/listinfo/oi-dev


[oi-dev] HEADS-UP: 11624 Use of modern nawk(1) requires update of generate-history

2019-08-27 Thread Aurélien Larcher
As a consequence to the nawk(1) update in illumos-gate, make sure that your
oi-userland clone contains the following commit to ensure proper history
generation,

https://github.com/OpenIndiana/oi-userland/pull/5268

Aurélien
-- 
---
Praise the Caffeine embeddings
___
oi-dev mailing list
oi-dev@openindiana.org
https://openindiana.org/mailman/listinfo/oi-dev