1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116
| cp ~/initial-setup-ks.cfg /ISO/isolinux/ks.cfg vim /ISO/isolinux/ks.cfg
xconfig --startxonboot
eula --agreed
auth --enableshadow --passalgo=sha512
cdrom
graphical
firstboot --enable
services --enabled="chronyd"
keyboard --vckeymap=cn --xlayouts='cn'
lang zh_CN.UTF-8
network --hostname=xwzx.160.com
rootpw --iscrypted $6$yYuwYKvNEEx376YS$.a9czD0NQuJzq7dF2xX1kOT1NsghSU.kLHeBjSKnSKc9TXV4jl93T54w9/SLJMEa.4Dju mmlyFgMfAg0YgPWE1
group --name=dev
user --groups=dev --name=dev --password=dev
timezone Asia/Shanghai --isUtc
firewall --disabled
selinux --disabled
bootloader --location=mbr
zerombr
clearpart --all --initlabel
part swap --fstype="swap" --ondisk=sda --size=6017 part / --fstype="xfs" --grow --ondisk=sda --size=1
part /boot --fstype="xfs" --ondisk=sda --size=1024
reboot
%packages @^developer-workstation-environment @additional-devel @base @core @debugging @desktop-debugging @development @dial-up @directory-client @fonts @gnome-apps @gnome-desktop @guest-desktop-agents @hardware-monitoring @input-methods @internet-applications @internet-browser @java-platform @kde-desktop @legacy-x @multimedia @network-file-system-client @performance @perl-runtime @perl-web @platform-devel @print-client @python-web @ruby-runtime @security-tools @virtualization-client @virtualization-hypervisor @virtualization-tools @web-server @x11 chrony kexec-tools
%end
%post id dev &>; /dev/null || useradd dev echo dev | passwd –stdin dev %end
%addon com_redhat_kdump --enable --reserve-mb=auto %end
%anaconda pwpolicy root --minlen=6 --minquality=1 --notstrict --nochanges --notempty pwpolicy user --minlen=6 --minquality=1 --notstrict --nochanges --emptyok pwpolicy luks --minlen=6 --minquality=1 --notstrict --nochanges --notempty %end
|