| 配置文件 | ks.cfg(可用装机生成的 anaconda-ks.cfg 作模板) |
|---|---|
| 触发方式 | 内核参数 inst.ks= 指定路径 |
| 校验 | ksvalidator 检查语法 |
最小 ks 片段
最小 ks 片段
lang zh_CN.UTF-8
timezone Asia/Shanghai --utc
rootpw --iscrypted $6$...
partition /boot --fstype=xfs --size=1024
network --bootproto=dhcp --activate
%packages
@^minimal-environment
%end内核参数引用 ks
内核参数引用 ks
inst.ks=http://10.0.0.10/ks/kylin-ks.cfg
# 或从 U 盘:inst.ks=hd:sdb1:/ks.cfgrootpw 明文写法会留在安装日志中,生产用 openssl passwd -6 生成哈希填入 --iscrypted。