From: Jan Damborsky [mailto:[email protected]] 
Sent: 04 March 2011 18:42
To: Robert Milkowski
Cc: [email protected]
Subject: Re: [caiman-discuss] site.xml and EMI/LMI

 

Hi Robert,

please see my response in line.

Thank you,
Jan


On 03/ 3/11 07:20 PM, Robert Milkowski wrote: 

Hi,

 

 

Snv_151a, x86

 

I put some customizations into default.xml so some extra services are
disabled.

I confirmed that AI ould generate /etc/svc/profile/site.xml->sc_profile.xml
with all the customizations I put.

 

The problem is that the changes do not take effect. Well, they do but only
for a brief period.

This is what is happening:

 

   1. AI properly creates site.xml

   2. during the very first boot from a localdisk after AI networked
installation finished, system-early-manifest-import is run
(/lib/svc/method/manifest-import)

        It will import all the manifests and apply generix.xml, platform.xml
and the site.xml

   3. later in the boot process system-manifest-import is run (again
/lib/svc/method/manifest-import)

       Although SVCCFG_CHECKHASH=1 for some reason it actually applies
generic.xml again (I mean it takes effect) undoing my customizations in
site.xml

      The site.xml won't be applied again as it was removed by
system/install/config service.

 

There are couple of problems here:

 

                I. why manifest-import ends up really applying generic.xml
despite SVCCFG_CHECKHASH=1? Looks like a bug...

                    If I manually disable some services now and reboot, both
early-manifest-import and manifest-import won't really apply generic.xml -
good.

                    It only happens during the first boot.


I think you are hitting 6945152.



 

I think you are right. Thank you.

Is anyone actively working on it? Disabling/enabling services during a
hands-free installation is one of the basic and most common features used -
it has to work and currently unfortunately it doesn't and one may ends up
with some services enabled which were specified to be disabled.

 





 

                II. I'm not entirely sure that system/install/config should
just blindly remove site.xml. It does check if it is a symbolink link, but
it doesn't even check where it points to.

                     Then shouldn't SVCCFG_CHECKHASH=1 protect here anyway?
(I haven't looked at the code yet...)

                    I guess the problem might be not with disabled/enabled
services but with extra properties for install/config (create a user, etc.).

                     Perhaps AI customizations should really go to
/etc/svc/profile/site/AI_site.xml? I'm worried here if a sysadmin would put
its own site.xml (as a symlink) as part of a "finish script".


You are right that custom SC profiles should end up in
/etc/svc/profile/site/ directory.

All that stuff (creating site.xml as a symbolic link to
/etc/svc/profile/sc_profile.xml)
was just an interim solution working around issue tracked by CR 6961214.
That CR has
been recently fixed and related AI changes are now in code review (see
thread with subject
"Code review request: profile enhancements for automated installer")

Jan



 

Thank you!

 

I'm reading the thread right now

 

_______________________________________________
caiman-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/caiman-discuss

Reply via email to