Mailinglist Archive: opensuse-autoinstall (36 mails)
| < Previous | Next > |
Re: [opensuse-autoinstall] Added kernel boot options from autoyast control file
- From: Dag Wieers <dag@xxxxxxxxxx>
- Date: Mon, 1 Oct 2007 16:23:55 +0200 (CEST)
- Message-id: <alpine.LRH.0.9999.0710011546410.12290@xxxxxxxxxxxxx>
On Mon, 1 Oct 2007, Dag Wieers wrote:
> We're autodeploying NLD9 and SLES10 systems, for both native and vmware
> instances. I succeeded in using rules and classes (after some nasty
> problems caused by differences in NLD9 and SLES10 control syntax).
>
> But I now have to add to the vmware-i386 class the boot option:
>
> clock=pit
>
> and the vmware-x86_64 class the boot option:
>
> notsc
>
> and I cannot find instructions on how to do this. Is there a file that
> contains the complete list of possibilities one could use inside a control
> file (for both NLD9 and SLES10 ?). That would be most welcome.
I found the kernel_parameters in the DTD and that will work.
But I have a follow-up question. Is there a way to do a negative match, or
specify an 'else' clause for a rule ?
Eg. when I have:
<rule>
<mac>
<match>^000c29</match>
<match_type>regex</match_type>
</mac>
<result>
<profile>profiles/vmware.xml</profile>
</result>
</rule>
I would like to have an else-fallback. Or have a rule match everything
except ^000c29. And I know you can play with <continue> to stop
processing, but that is not an option in a complex environment.
Also is it possible to call 2 profiles from one rule ? In the case where
we do match with a vmware instance (mac ~= ^000c29) I want to call profile
vmware.xml and vmware-@arch@.xml, however that does not seem to work (and
I do not get a real error, I just see both are not being called).
Copying the profile twice doesn't work either:
<rule> <!-- Check if this is VMware (based on MAC address) -->
<mac>
<match>^000c29</match>
<match_type>regex</match_type>
</mac>
<result>
<profile>profiles/vmware.xml</profile>
<continue config:type="boolean">true</continue>
</result>
</rule>
<rule> <!-- Check if this is VMware (based on MAC address) -->
<mac>
<match>^000c29</match>
<match_type>regex</match_type>
</mac>
<arch>*</arch>
<result>
<profile>profiles/vmware-@arch@.xml</profile>
<continue config:type="boolean">false</continue>
</result>
</rule>
It stops after vmware.xml (or it does not match the vmware-@arch@.xml
profile for some reason ?).
--
-- dag wieers, dag@xxxxxxxxxx, http://dag.wieers.com/ --
[Any errors in spelling, tact or fact are transmission errors]
--
To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-autoinstall+help@xxxxxxxxxxxx
> We're autodeploying NLD9 and SLES10 systems, for both native and vmware
> instances. I succeeded in using rules and classes (after some nasty
> problems caused by differences in NLD9 and SLES10 control syntax).
>
> But I now have to add to the vmware-i386 class the boot option:
>
> clock=pit
>
> and the vmware-x86_64 class the boot option:
>
> notsc
>
> and I cannot find instructions on how to do this. Is there a file that
> contains the complete list of possibilities one could use inside a control
> file (for both NLD9 and SLES10 ?). That would be most welcome.
I found the kernel_parameters in the DTD and that will work.
But I have a follow-up question. Is there a way to do a negative match, or
specify an 'else' clause for a rule ?
Eg. when I have:
<rule>
<mac>
<match>^000c29</match>
<match_type>regex</match_type>
</mac>
<result>
<profile>profiles/vmware.xml</profile>
</result>
</rule>
I would like to have an else-fallback. Or have a rule match everything
except ^000c29. And I know you can play with <continue> to stop
processing, but that is not an option in a complex environment.
Also is it possible to call 2 profiles from one rule ? In the case where
we do match with a vmware instance (mac ~= ^000c29) I want to call profile
vmware.xml and vmware-@arch@.xml, however that does not seem to work (and
I do not get a real error, I just see both are not being called).
Copying the profile twice doesn't work either:
<rule> <!-- Check if this is VMware (based on MAC address) -->
<mac>
<match>^000c29</match>
<match_type>regex</match_type>
</mac>
<result>
<profile>profiles/vmware.xml</profile>
<continue config:type="boolean">true</continue>
</result>
</rule>
<rule> <!-- Check if this is VMware (based on MAC address) -->
<mac>
<match>^000c29</match>
<match_type>regex</match_type>
</mac>
<arch>*</arch>
<result>
<profile>profiles/vmware-@arch@.xml</profile>
<continue config:type="boolean">false</continue>
</result>
</rule>
It stops after vmware.xml (or it does not match the vmware-@arch@.xml
profile for some reason ?).
--
-- dag wieers, dag@xxxxxxxxxx, http://dag.wieers.com/ --
[Any errors in spelling, tact or fact are transmission errors]
--
To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-autoinstall+help@xxxxxxxxxxxx
| < Previous | Next > |