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:25] 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 47: | Line 48: | ||
# Network information | # Network information | ||
- | network --bootproto=dhcp --device=env2 --activate --ipv6=auto | + | network --bootproto=dhcp --device=env2 --interfacename=env2 --activate --ipv6=auto |
- | network --bootproto=dhcp --device=env3 --onboot=off --noipv6 | + | network --bootproto=dhcp --device=env3 --interfacename=env3 --onboot=off --noipv6 |
network --hostname=lnx100 | network --hostname=lnx100 | ||
# Root password | # Root password | ||
Line 98: | 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 111: | 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. |