The YaST Autoinstallation Module

The purpose of this module is to help you create the AutoYaST XML control file. You can start the module with:

# yast2 autoyast or by selecting the icon in the YaST Misc screen (the one with the wonderful pineapple icon). When you start the module you will see a screen like Figure 9-33.

FIGURE 9-33

YaST's AutoYaST module main screen

FIGURE 9-33

YaST's AutoYaST module main screen

The module enables you to create a configuration by going through any or all of the possible steps that would be taken during a real installation, using an interface almost identical to YaST during installation.

Alternatively, you can create a configuration based on the current machine (using ToolsOCreate Reference Profile), which you can use as a starting point or template for your XML files (see Figure 9-34). Here you can choose which aspects of the current machine's configuration you want to copy to the reference profile. You can then base your final configuration on this by making suitable changes. You can at any stage view the XML file itself or go through the elements of an interactive installation and modify the file (see Figure 9-35).

FIGURE 9-34

Creating a reference file based on the current machine

FIGURE 9-34

Creating a reference file based on the current machine

FIGURE 9-35

Viewing the XML source

FIGURE 9-35

Viewing the XML source

When you have a basic XML file, you may want to refine it by editing it in a text editor (see Figure 9-36); this can be done with the emacs editor (preferably with the psgmls or nxml package installed, which makes emacs a true XML editor that can find and parse the XML DTD or schema and help you in many ways to avoid creating an invalid file).

FIGURE 9-36

Editing the control file with emacs

FIGURE 9-36

Editing the control file with emacs

Was this article helpful?

0 0

Post a comment