Section 6.1.2. Custom Rules at http://doc.opensuse.org/projects/autoyast/rulesandclass.html gives what you are looking for ( Or use a pre script )
Extract and translation:
...
<rule>
<custom1>
<script>
if grep -i intel /proc/cpuinfo > /dev/null; then
echo -n "passes"
else
echo -n "fails"
fi;
</script>
<match>*</match>
exact
</custom1>
<result>
<profile>@custom1@_requirements.xml</profile>
<continue config:type="boolean">true</continue>
</result>
</rule>
.............................................................................................................
-----Original Message-----
From: Taluskie, Vincent [mailto:Vincent.Taluskie@emc.com]
Sent: Thursday, January 17, 2013 7:46 PM
To: opensuse-autoinstall@opensuse.org
Subject: [opensuse-autoinstall] implement minimum hardware checking
Hi,
I would like to implement minimum hardware checking for SUSE 11 (SP1) using autoyast installation. It looks like using AutoYast rules.xml file would be a good way to handle this: Ideally, if the hardware meets the requirements, then select the installation profile (passes_requirements.xml) and proceed as normal.
One concept I am having a hard time finding docs around is how to flag failure during install. If there's not enough memory or disk to successfully support the application I am installing, I would like to return the fails_requirements.xml profile and show the user an abort message rather than doing the install.
Does someone have a pointer to this kind of scenario? I have been searching but not finding much discussion around handling failure during the auto install.
Thanks in Advance,
vince
--
To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org
To contact the owner, e-mail: opensuse-autoinstall+owner@opensuse.org
--
To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org
To contact the owner, e-mail: opensuse-autoinstall+owner@opensuse.org