This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
linux:centos_redhat_kickstart [2021/08/24 14:19] manu |
linux:centos_redhat_kickstart [2021/08/26 16:59] (current) manu |
||
---|---|---|---|
Line 15: | Line 15: | ||
# mkdir /tmp/rhel8 | # mkdir /tmp/rhel8 | ||
# cp -avRf /mnt/* /tmp/rhel8 | # cp -avRf /mnt/* /tmp/rhel8 | ||
+ | # cp -avRf /mnt/.discinfo /mnt/.treeinfo /tmp/rhel8 | ||
</cli> | </cli> | ||
- | //Note:// All files including .<file> must also be copied, else the stage2 won't be loaded. | + | **//Note://** All files including .<file> must also be copied, else the stage2 won't be loaded. |
Copy your kickstart file into the temporary folder (name must be ks.cfg) | Copy your kickstart file into the temporary folder (name must be ks.cfg) | ||
Line 34: | Line 35: | ||
Ex: | Ex: | ||
<code> | <code> | ||
- | lang en_US | + | lang en_US.UTF-8 |
keyboard fr_CH | keyboard fr_CH | ||
- | timezone Europe/Luxembourg --isUtc | ||
- | rootpw $2b$10$U9No6V9jb4HcU.w.gSBQe.nu/0oT7j6tjqB1jIPsdrAm1CvYqJz.K --iscrypted | ||
#platform IBM pSeries | #platform IBM pSeries | ||
reboot | reboot | ||
Line 47: | Line 46: | ||
autopart | autopart | ||
auth --passalgo=sha512 --useshadow | auth --passalgo=sha512 --useshadow | ||
- | selinux --enforcing | + | |
- | firewall --enabled --ssh | + | # Network information |
+ | network --bootproto=dhcp --device=env2 --interfacename=env2 --activate --ipv6=auto | ||
+ | network --bootproto=dhcp --device=env3 --interfacename=env3 --onboot=off --noipv6 | ||
+ | network --hostname=lnx100 | ||
+ | # Root password | ||
+ | rootpw --iscrypted $6$c12345siBmU$fko/4zLgIGBumF8p.Jp1nndgZ0 | ||
+ | # System authorization information | ||
+ | auth --passalgo=sha512 --useshadow | ||
+ | # SELinux configuration | ||
+ | selinux --disabled | ||
firstboot --disable | firstboot --disable | ||
+ | # Do not configure the X Window System | ||
+ | skipx | ||
+ | # System services | ||
+ | services --enabled="chronyd" | ||
+ | services --disabled="libvirtd" | ||
+ | # System timezone | ||
+ | timezone Europe/Luxembourg --isUtc | ||
+ | |||
+ | # Disk partitioning information | ||
+ | ignoredisk --only-use=mpatha | ||
+ | clearpart --all --initlabel --drives=mpatha | ||
+ | |||
+ | part pv.590 --fstype="lvmpv" --ondisk=mpatha --size=16392 --grow | ||
+ | part prepboot --fstype="prepboot" --ondisk=mpatha --size=10 | ||
+ | part /boot --fstype="xfs" --ondisk=mpatha --size=1005 | ||
+ | volgroup rootvg --pesize=4096 pv.590 | ||
+ | logvol / --fstype="xfs" --size=3072 --name=root --vgname=rootvg | ||
+ | logvol /usr --fstype="xfs" --size=3072 --name=usr --vgname=rootvg | ||
+ | logvol /var --fstype="xfs" --size=3072 --name=var --vgname=rootvg | ||
+ | logvol /tmp --fstype="xfs" --size=1024 --name=tmp --vgname=rootvg | ||
+ | logvol /home --fstype="xfs" --size=1024 --name=home --vgname=rootvg | ||
+ | logvol swap --fstype="swap" --size=2048 --name=swap --vgname=rootvg | ||
+ | |||
%packages | %packages | ||
@^custom-environment | @^custom-environment | ||
Line 68: | Line 99: | ||
#Update system | #Update system | ||
- | hostname default.example.ru | ||
rm -rf /var/cache/yum/timedhosts.txt | rm -rf /var/cache/yum/timedhosts.txt | ||
yum update -y | yum update -y | ||
Line 81: | Line 111: | ||
</cli> | </cli> | ||
- | Add the stanza in /tmp/rhel7/isolinux/isolinux.cfg file as follows. | + | Add the stanza in **/tmp/rhel8/isolinux/isolinux.cfg** file as follows. |
Make sure that the stanza has inst.stage2 and the correct label. | Make sure that the stanza has inst.stage2 and the correct label. |