kickstart 完整示例
https://rtoax.blog.csdn.net/article/details/123448892
# Generated by Anaconda 34.25.0.17 # Generated by pykickstart v3.32 #version=RHEL9 # Use graphical install graphical # http installation source url --url=http://192.168.122.22/CCLinux-2203-x86_64-rc1/ %addon com_redhat_kdump --enable --reserve-mb='auto' %end # Keyboard layouts keyboard --xlayouts='cn' # System language lang zh_CN.UTF-8 # Use CDROM installation media #cdrom # Reboot after installation reboot %packages @^graphical-server-environment @debugging @network-server @performance @remote-desktop-clients @virtualization-tools %end # Run the Setup Agent on first boot firstboot --enable # Generated using Blivet version 3.4.0 ignoredisk --only-use=vda autopart # Partition clearing information clearpart --none --initlabel # System timezone timezone Asia/Shanghai --utc # Root password rootpw --iscrypted --lock $6$rMt1qgFxWxQ//N2X$SJlNvEJDVEx7fMWfgBWDsyczBtRmueR820jR5Gd/fDrjibR/o65t3KKv/4dM47dDwrFacsfwiZcch6x pIUJ1I0 user --groups=wheel --name=rongtao --password=$6$hTwcIUUv.UAuaAbW$Ceb8LL.I.hgmWnvAt9t8olV0N8c18xUgBNXM5qxuJvhnkMH9tU9pUVLDUNQ 0MyC.8UCqVe9hn0VFeoEszsWAI/ --iscrypted --gecos="rongtao" selinux --permissive firewall --enabled --http --ftp --smtp --ssh --port=1234,2345,3456 %pre #!/bin/bash echo ">>>>>>>>>>>>>> Just Do It <<<<<<<<<<<<<" %end %post --interpreter=/bin/bash #!/bin/bash echo hello world > /hello.txt %end ———————————————— 版权声明:本文为CSDN博主「rtoax」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。 原文链接:https://blog.csdn.net/Rong_Toa/article/details/123448892