Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
linux_wiki:os_install_kickstart [2016/11/28 22:40] billdozor [CentOS 6 Example Kickstart File] |
linux_wiki:os_install_kickstart [2019/05/25 23:50] (current) |
||
---|---|---|---|
Line 22: | Line 22: | ||
---- | ---- | ||
- | ====== CentOS 6 Example Kickstart File ====== | + | ====== CentOS 6 Example Kickstart File (bios) |
The following kickstart file performs a network install of CentOS 6 minimal, on /dev/sda, using MBR, with LVM, and reboots after installation. | The following kickstart file performs a network install of CentOS 6 minimal, on /dev/sda, using MBR, with LVM, and reboots after installation. | ||
Line 45: | Line 45: | ||
## System Configuration ## | ## System Configuration ## | ||
- | rootpw | + | rootpw |
####################################### | ####################################### | ||
Line 121: | Line 121: | ||
---- | ---- | ||
- | ====== CentOS 7 Example Kickstart File ====== | + | ====== CentOS 7 Example Kickstart File (bios) |
**Modify the encrypted root password before using.** | **Modify the encrypted root password before using.** | ||
- | |||
- | ===== CentOS 7 BIOS Kickstart ===== | ||
<code bash centos7-ks-bios.cfg> | <code bash centos7-ks-bios.cfg> | ||
Line 137: | Line 135: | ||
## Install Location ## | ## Install Location ## | ||
graphical | graphical | ||
- | nfs --server=10.0.0.200 --dir=/ | + | nfs --server=10.1.2.3 --dir=/ |
## Locale Settings ## | ## Locale Settings ## | ||
Line 145: | Line 143: | ||
## System Configuration ## | ## System Configuration ## | ||
- | rootpw | + | rootpw |
####################################### | ####################################### | ||
Line 173: | Line 171: | ||
volgroup vglocal --pesize=4096 pv.01 | volgroup vglocal --pesize=4096 pv.01 | ||
logvol /tmp --fstype=" | logvol /tmp --fstype=" | ||
- | logvol swap --fstype=" | + | logvol swap --fstype=" |
logvol /home --fstype=" | logvol /home --fstype=" | ||
logvol / --fstype=" | logvol / --fstype=" | ||
Line 195: | Line 193: | ||
## Reboot After Installation ## | ## Reboot After Installation ## | ||
- | reboot | + | reboot |
+ | |||
+ | #### Auto execute post install commands #### | ||
+ | %post --interpreter /bin/sh --log=/ | ||
+ | ( | ||
+ | ## Enter post install commands here to execute prior to reboot | ||
+ | # Useful for performing something like the below example: | ||
+ | |||
+ | # Startup rpcbind for NFS | ||
+ | #systemctl start rpcbind | ||
+ | |||
+ | # Mount admin share | ||
+ | #mount -vt nfs 10.1.2.3:/ | ||
+ | |||
+ | # Create / | ||
+ | #mkdir / | ||
+ | |||
+ | # Copy the firstboot script to the new dir, set owner/ | ||
+ | #cp -v / | ||
+ | #chown -Rv root:root / | ||
+ | #chmod -Rv 700 / | ||
+ | |||
+ | # Copy firstboot service unit to system, set owner/ | ||
+ | #cp -v / | ||
+ | #chown -v root:root / | ||
+ | #chmod -v 644 / | ||
+ | |||
+ | # Enable firstboot service for next boot | ||
+ | #systemctl enable firstboot.service | ||
+ | |||
+ | # Un-mount admin share | ||
+ | #umount -v /mnt | ||
+ | ) | ||
+ | %end | ||
</ | </ | ||
---- | ---- | ||
- | ===== CentOS 7 EFI Kickstart ===== | + | ====== CentOS |
The only difference for EFI based systems in a kickstart file is the addition of a /boot/efi partition. | The only difference for EFI based systems in a kickstart file is the addition of a /boot/efi partition. |