Alex writes:
> Hello all!
> 
> I have a few custom smf manifests which I'd like to add during JumpStart.

If you put your custom manifests into the [/a]/var/svc/manifest hierarchy
during jumpstart, they'll automatically be imported when the manfiest-import 
service runs during the next boot.

> Also, I'd like a few others enabled during JumpStart. Is there a native way
> in JumpStart or smf during installation, to provide for this? I'd like to
> avoid using an /etc/rc3.d/S99postinstall script which deletes itself after
> the first boot.

If you've got some customizations of the 'enabled' property for your 
services or any system-delivered services, you can create a 
site-specific profile.

Place a profile which defines the services you want enabled or disabled 
into [/a]/var/svc/profile/site.xml during jumpstart.  Again, these 
customizations will be applied when the manifest-import service runs.
(You can also apply a profile manually at any point using 'svccfg apply 
<file>'.)

A site-specific profile to enable telnet and rlogin would look like this:

 <?xml version='1.0'?>
 <!DOCTYPE service_bundle SYSTEM '/usr/share/lib/xml/dtd/service_bundle.dtd.1'>
 <service_bundle type='profile' name='site'
         xmlns:xi='http://www.w3.org/2003/XInclude' >

  <service name='network/telnet' version='1' type='service'>
    <instance name='default' enabled='true'/>
  </service>
  <service name='network/rlogin' version='1' type='service'>
    <instance name='default' enabled='true'/>
  </service>

 </service_bundle>

liane
-- 
Liane Praza, Solaris Kernel Development
liane.praza at sun.com - http://blogs.sun.com/lianep



Reply via email to