I have a working autoyast install for 11.1 without using rules. Right
now I would like to introduce rules but I do not seem to understand
exactly how to make this work.
The current install is done by supplying information for a linuxrc info
file on the kernel command line
info=nfs://<ip-address>/<path>/1055_init.linuxrc
The info file has several parameters defined for network access, the
install and the autoyast variable
autoyast: nfs://<ip-address>/<path>/1055_init.autoyast <- this is
my autoinst profile
below the path I have created the rules directory which includes a rules
.xml file with following content
<?xml version="1.0"?>
<!DOCTYPE autoinstall SYSTEM "/usr/share/autoinstall/dtd/rules.dtd">
<!-- comments -->
<autoinstall xmlns="http://www.suse.com/1.0/yast2ns"
xmlns:config="http://www.suse.com/1.0/configns">
<rules config:type="list">
<rule>
<custom1>
<script>
# CPU_TYPE on vm's is giving same result for CPU as on real hardware we
have to extend to video to understand the difference between virtual and
real
CPU_TYPE=`cat /proc/cpuinfo|grep 'model name'|uniq|awk 'BEGIN
{FS=":"};{print $2}'`
VIDEO_TYPE=`/sbin/lspci | grep "VGA compatible controller"|awk 'BEGIN
{FS=":"};{print $3}'`
if [ "$CPU_TYPE" == " AMD Athlon(tm) 64 X2 Dual Core Processor 4400+" ];
then
if [ "$VIDEO_TYPE" == " nVidia Corporation G70 [GeForce 7300 GT] (rev
a1)" ]; then
echo -n "host1.xml"
elif [ "$VIDEO_TYPE" == " InnoTek Systemberatung GmbH VirtualBox
Graphics Adapter" ]; then
echo -n "host1-virtualbox.xml"
fi
# information for scan64-3200
elif [ "$CPU_TYPE" == " AMD Athlon(tm) 64 Processor 3200+" ]; then
if [ "$VIDEO_TYPE" == " nVidia Corporation G70 [GeForce 7300 GT] (rev
a1)" ]; then
echo -n "host2.xml"
elif [ "$VIDEO_TYPE" == " InnoTek Systemberatung GmbH VirtualBox
Graphics Adapter" ]; then
echo -n "host2-virtualbox.xml"
fi
fi
</script>
<match>*</match>