[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
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: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
I got a confirmation from another user about rules being a good way to do this checking. Thank you! What I am looking for now is a simple failure.xml profile - put up a message to the user that says "Unfortunately this hardware does not meet requirements to support the application" and halt with no further installation. Anyone have something like that handy? All the profiles I've seen are geared around successful installation not handling a case where the hardware doesn't meet necessary requirements and handling the error case. Thanks, vince On Jan 17, 2013, at 11:45 AM, Taluskie, Vincent wrote:
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
participants (2)
-
Hans-Joachim Ehlers
-
Taluskie, Vincent