SUSE自动化安装应答文件

SUSE Linux Enterprise Server 15 SP1的 常规安装在单个阶段中执行。但是,自动安装过程分为两个阶段。在安装基本系统之后,系统将引导进入第二阶段,在第二阶段完成系统配置。

必须安装 软件包autoyast2和 autoyast2-installation才能在已安装系统中正确运行第二阶段。否则,在启动进入已安装系统之前将显示错误。

第二阶段可以使用以下second_stage参数关闭 :

<general>
<mode>
<confirm config:type="boolean">false</confirm>
<second_stage config:type="boolean">false</second_stage>
</mode>
</general>

<drive>
<device>/dev/sda</device>
<partitions config:type="list">
<partition>
<size>10G</size>
<mount>/</mount>
</partition>
<partition>
<size>1G</size>
<mount>/tmp</mount>
</partition>
</partitions>
</drive>

....
在上面的示例中,drive资源是由device属性和 partitions资源组成的映射。
该partitions 资源是包含的多个实例的清单 partition资源。每个partition 资源都是一个包含size和 mount属性的映射。

嵌套资源的默认类型是map。必须使用config:type="list"属性将列表标记为此类。

使用下面的命令可以自动生成 应答文件
/sbin/yast2 autoyast


使用jing 可以验证xml文件的合法正确性。
jing /usr/share/YaST2/schema/autoyast/rng/profile.rng <控制文件>

这里列出了SLES当前可用的扩展,可以在您的Autoyast配置文件中使用
https://github.com/yast/yast-registration/wiki/Available-SCC-Extensions-for-Use-in-Autoyast


使用SUSEConnect --list-extensions,可以列出已注册系统中的所有可用扩展。

Install with: SUSEConnect -p sle-module-development-tools/15/x86_64

SUSE 15 的文档地址 https://documentation.suse.com/sles/15-SP1/

SUSE 15 SAP 文档 https://documentation.suse.com/sles-sap/15-SP1/

原文地址:https://www.cnblogs.com/jkklearn/p/12122303.html