[opensuse-autoinstall] Added kernel boot options from autoyast control file
Hi, 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. Thanks in advance, -- -- dag wieers, dag@wieers.com, http://dag.wieers.com/ -- [Any errors in spelling, tact or fact are transmission errors] -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
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>
On Mon, Oct 01, 2007 at 04:23:55PM +0200, Dag Wieers wrote:
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.
What pops into my head is using a custom script. Basically do a short
shell script that if something like ifconfig sees the mac addres, echo
vmware, else echo your default.. something like:
<rule>
<custom1>
<script>
<![CDATA[
#!/bin/sh
PATH=/bin:/sbin:/usr/bin:/usr/sbin
if [ -n "`ifconfig | awk '/HWaddr/{print $NF}' | egrep -i '^00:0C:29'`"
]
then
echo vmware
else
echo default
fi
]]>
</script>
<match>*</match>
participants (2)
-
Dag Wieers
-
Mike Marion