RE: implement minimum hardware checking

Hans-Joachim Ehlers <[email protected]>
Newsgroups gmane.linux.suse.autoinstall
Message-ID <A3ADF8C56ADA0F45BC34F904A6514E280151E4579894@EXW10.eum.root.eumetsat.int>
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>
        <match_type>exact</match_type>
    </custom1>
    <result>
         <profile>@custom1@_requirements.xml</profile>
         <continue config:type="boolean">true</continue>
    </result>
</rule>

.............................................................................................................

-----Original Message-----
From: Taluskie, Vincent [mailto:[email protected]] 
Sent: Thursday, January 17, 2013 7:46 PM
To: [email protected]
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: [email protected]
To contact the owner, e-mail: [email protected]

-- 
To unsubscribe, e-mail: [email protected]
To contact the owner, e-mail: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.