first commit

This commit is contained in:
root
2026-04-26 13:25:50 +08:00
commit 6e46c06edd
20 changed files with 17274 additions and 0 deletions

60
pkgs/ks/rhel.ks Normal file
View File

@@ -0,0 +1,60 @@
graphical
%addon com_redhat_kdump --disable
%end
timezone Asia/Shanghai --utc
keyboard --xlayouts='us'
lang en_US.UTF-8
selinux --disabled
url --url="http://172.16.9.254/rocky/9.7"
# Network information
network --bootproto=dhcp --device=link --ipv6=auto --activate
# Partition clearing information
#zerombr
#clearpart --all --initlabel
#autopart --type=lvm
%include /tmp/diskinfo
#ignoredisk --only-use=sda
#part /boot --fstype="xfs" --ondisk=sda --size=1024
#part swap --fstype="swap" --ondisk=sda --size=4096
#part / --fstype="xfs" --ondisk=sda --size=97278
#part /home --fstype="xfs" --ondisk=sda --size=20480
%packages
@^minimal-environment
@standard
@development
vim
wget
curl
autofs
nfs-utils
nfs4-acl-tools
sssd-nfs-idmap
pcp-pmda-nfsclient
%end
# Root password
rootpw --iscrypted $6$muqhPjb0F9IM2/Fg$pPaVF7DTjs/zz91vHMrcL8jPLQoLFCjUUxHkIZao9C6OFbBPof2AtmTRfvO4Ix.8al3dnMz8/aAbd88sHSQTK.
user --name=kelvin --password=$6$kAz6MRJFIpIyhKuv$YZntcNpyoSYRMD6y5qmZIIBiklzaskqHWE4A0oXI8vX492bcL/.z6xF3MjVDgVJzZ0FaNDSy8BFeEhD9mfr67/ --iscrypted --gecos="kelvin"
#reboot
%pre --interpreter=/bin/bash
curl -o /tmp/dfmt.sh http://172.16.9.254/ks/dfmt.sh
chmod +x /tmp/dfmt.sh
/tmp/dfmt.sh > /tmp/diskinfo
%end
%post
curl -s -o /tmp/init.sh http://172.16.9.254/ks/init.sh
chmod +x /tmp/init.sh
/tmp/init.sh
%end