The AutoYaST rules.xml control file fails to run properly

This document (000020283) is provided subject to the disclaimer at the end of this document.

Environment

SUSE Linux Enterprise Server 15
SUSE Linux Enterprise Server 12
AutoYaST
 

Situation

A rules.xml AutoYaST control file contains a dialog for selection. The rules.xml file does not seem to be executed properly. The dialog box fails to show and allow for a selection.

The rules.xml looks correct.
<?xml version="1.0"?>
<!DOCTYPE autoinstall>
<autoinstall xmlns="http://www.suse.com/1.0/yast2ns" xmlns:config="http://www.suse.com/1.0/configns">
  <rules config:type="list">
    <rule>
       <result>
            <profile>sales.xml</profile>
            <continue config:type="boolean">false</continue>
       </result>
       <dialog>
            <element config:type="integer">0</element>
            <dialog_nr config:type="integer">0</dialog_nr>
            <question>Sales Image</question>
            <title>Image Selection</title>
            <conflicts config:type="list">
                <element config:type="integer">1</element>
            </conflicts>
       </dialog>
    </rule>
    <rule>
       <result>
            <profile>eng.xml</profile>
            <continue config:type="boolean">false</continue>
        </result>
        <dialog>
        <element config:type="integer">1</element>
        <dialog_nr config:type="integer">0</dialog_nr>
        <question>Engineering Image</question>
        <conflicts config:type="list">
            <element config:type="integer">0</element>
        </conflicts>
    </dialog>
    </rule>
  </rules>
</autoinstall>

The rules.xml, sales.xml and eng.xml files are stored on the installation server under autoyast directory. The boot options used for installation included:
autoyast=http://install.server.cloud/autoyast/rules.xml
The following error was observed and the installation fails.

Error
"None or wrong base product has been defined in the AutoYaST configuration file. Please check the products entry in the software selection."

Resolution

1. Create a profile subdirectory with a rules directory under it
2. Move the autoyast/rules.xml file to the autoyast/profile/rules/ directory
3. Move the sales.xml and eng.xml files to the autoyast/profile/ directory
profile/
profile/rules
profile/rules/rules.xml
profile/sales.xml
profile/eng.xml
4. Change the autoyast boot option to
autoyast=http://install.server.cloud/autoyast/profile/
NOTE: You must include the trailing '/' so linuxrc identifies the path as a directory, otherwise you will get XML parse errors.

Cause

If you directly include the rules.xml filename in the autoyast boot option, autoyast treats the rules.xml file as a stand alone control file, and not a rules file. You must have the correct directory structure and option as stated in the documentation.

Additional Information

For details about rules and classes and their proper use, see the documentation section Rule-based Automatic Installation .

Disclaimer

This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.

  • Document ID:000020283
  • Creation Date: 15-Jun-2021
  • Modified Date:15-Jun-2021
    • SUSE Linux Enterprise Server

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback@suse.com

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

Join Our Community

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.


SUSE Customer Support Quick Reference Guide SUSE Technical Support Handbook Update Advisories
Support FAQ

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.

Go to Customer Center