You're correct in that the distro_const scripts themselves don't contain
the kernel image - the distro_const command makes use of IPS to install
a base image. The SUNWcs and SUNWcsd packages specified in the manifest
are pulled from the given IPS repository. Those packages contain the
kernel (among many other things), and include definitions for the
initial directory structure.
How are you building the kernel? If it's based off of a recent version
of ON, an appropriate IPS repository with many of the needed packages
gets built along with it. However, some required packages would still
need to be compiled separately or pulled in from
http://pkg.opensolaris.org/dev (this is all assuming a baseline of
development build 134). (I'm trying to understand what you've done so
far and where you're going with this so I can provide a bit better
guidance...)
- Keith
On 06/18/10 05:59 AM, Pranay Kumar Shrivastava wrote:
Hi,
For the first solution
I'm not sure about what you mean by appropriate directories. I was trying to
search for a package named kernel or something but didn't found any on my
machine from pkg list command. I'm a newbie so I'll require a bit more help.
For the second solution, now since the online repo is timing out, what I tried
was to create a repo of my own, with a dummy package. (Only 1). Now when I
tried to build my image, obviously no programs would be there, I got errors ,
I've turned off errors just to see exactly what goes on with the scripts.
Now the scripts require that pkg_img contains the required directories. I'm
assuming that this happens while installing the packages that they unpack and
create the required directories? But if that's the case, the scripts themselves
don't contain the kernel image that needs to go in this live iso image (or does
it?). Now where is this being specified? The manifest for distro_const? I
didn't saw any entry for ai_x86_image.xml that specifies the kernel image.
I hope you understand what I'm trying to do here... Thanks very much for the
response.
-----Original Message-----
From: Keith Mitchell [mailto:[email protected]]
Sent: Thursday, June 17, 2010 8:10 PM
To: Pranay Kumar Shrivastava
Cc: [email protected]; caiman-discuss
Subject: Re: [osol-discuss] Specifying the kernel in my image.
(Cross-posting to caiman-discuss)
If you've compiled the kernel sources, you have 2 options:
1) Publish them as the appropriate IPS package to a (local) repository,
and use that as the preferred publisher / authority for the distro_const
(DC) build.
2) Add a finalizer script, immediately after the "im-pop" finalizer,
that copies the binary into the correct location in the proto/pkg_image
area of the build*.
* See: http://dlc.sun.com/osol/docs/content/dev/DistroConst/scripts.html
On 06/17/10 04:26 AM, Pranay Srivastava wrote:
Hi,
I've been experimenting with [u][b]distro_const[/b][/u], the manifest file (
Mostly same i actually copied from AI installer for x86).
The question is if say i've compiled a the kernel sources and they reside in
the platform/build-18..... some directory. So how and where do i specify that
this kernel binary should be used instead? I've seen the
[u][b]boot_root[/b][/u] section and in there i see two entries...
[i][u][b]<base_include type="dir">kernel</base_include>
<base_include type="dir">platform</base_include>[/b][/u][/i]
I'm guessing that these are supposed to tell which kernel should go in the iso
right? however actually which one is it? The the /kernel is the current
current not the one i compiled.
So which one of these is to be used?
Thanks for ur help
DISCLAIMER:
-----------------------------------------------------------------------------------------------------------------------
The contents of this e-mail and any attachment(s) are confidential and intended
for the named recipient(s) only.
It shall not attach any liability on the originator or HCL or its affiliates.
Any views or opinions presented in
this email are solely those of the author and may not necessarily reflect the
opinions of HCL or its affiliates.
Any form of reproduction, dissemination, copying, disclosure, modification,
distribution and / or publication of
this message without the prior written consent of the author of this e-mail is
strictly prohibited. If you have
received this email in error please delete it and notify the sender
immediately. Before opening any mail and
attachments please check them for viruses and defect.
-----------------------------------------------------------------------------------------------------------------------
_______________________________________________
caiman-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/caiman-discuss