Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
linux_wiki:os_install_kickstart [2016/01/27 16:14] billdozor |
linux_wiki:os_install_kickstart [2016/11/28 22:47] billdozor |
||
---|---|---|---|
Line 6: | Line 6: | ||
**Checklist** | **Checklist** | ||
- | * Enterprise Linux 6/7 | + | * Distro(s): |
+ | |||
+ | ---- | ||
+ | |||
+ | ====== External Resources ====== | ||
+ | |||
+ | * [[https:// | ||
---- | ---- | ||
Line 12: | Line 18: | ||
====== Kickstart Install ====== | ====== Kickstart Install ====== | ||
- | * Boot a system to installation media | + | See this page for the complete process: [[linux_wiki:os_install_bare_metal|OS Install: Bare Metal]] |
- | * On the " | + | |
- | * After " | + | |
- | * **Note**: This can be pasted into the console by using most KVM menus. (Keyboard > Send Text to Target... > Paste in text > click Ok) | + | |
---- | ---- | ||
Line 35: | Line 38: | ||
## Install Location ## | ## Install Location ## | ||
install | install | ||
- | nfs --server=10.0.0.200 --dir=/ISO/ | + | nfs --server=10.0.0.200 --dir=/iso/ |
## Locale Settings ## | ## Locale Settings ## | ||
Line 42: | Line 45: | ||
## System Configuration ## | ## System Configuration ## | ||
- | rootpw | + | rootpw |
####################################### | ####################################### | ||
Line 66: | Line 69: | ||
# Physical Partitions # | # Physical Partitions # | ||
part /boot --fstype=ext4 --size=512 --ondisk=sda | part /boot --fstype=ext4 --size=512 --ondisk=sda | ||
- | part pv.01 --grow --size=18512 --ondisk=sda | + | part pv.01 --grow --size=26624 --ondisk=sda |
# LVM Setup # | # LVM Setup # | ||
Line 72: | Line 75: | ||
logvol /home --fstype=ext4 --name=lvhome --vgname=vglocal --size=4096 | logvol /home --fstype=ext4 --name=lvhome --vgname=vglocal --size=4096 | ||
logvol / --fstype=ext4 --name=lvroot --vgname=vglocal --size=4096 | logvol / --fstype=ext4 --name=lvroot --vgname=vglocal --size=4096 | ||
- | logvol swap --name=lvswap --vgname=vglocal --size=4096 | + | logvol swap --name=lvswap --vgname=vglocal --size=8192 |
logvol /tmp --fstype=ext4 --name=lvtmp --vgname=vglocal --size=2048 | logvol /tmp --fstype=ext4 --name=lvtmp --vgname=vglocal --size=2048 | ||
logvol /var --fstype=ext4 --name=lvvar --vgname=vglocal --size=4096 | logvol /var --fstype=ext4 --name=lvvar --vgname=vglocal --size=4096 | ||
Line 85: | Line 88: | ||
## Reboot After Installation ## | ## Reboot After Installation ## | ||
- | reboot | + | reboot |
#### Auto execute post install commands #### | #### Auto execute post install commands #### | ||
- | %post --interpreter /bin/sh | + | %post --interpreter / |
( | ( | ||
- | ## Enter post install commands here (to launch a script maybe?) | + | ## Enter post install commands here to execute prior to reboot |
+ | # Useful for performing something like the below example: | ||
+ | # Startup rpcbind for NFS | ||
+ | #service rpcbind start | ||
+ | |||
+ | # 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 / | ||
+ | |||
+ | # Create line in rc.local to auto-execute the firstboot script | ||
+ | #echo "/ | ||
+ | |||
+ | # Un-mount admin share | ||
+ | #umount -v /mnt | ||
) | ) | ||
%end | %end | ||
Line 114: | Line 137: | ||
## Install Location ## | ## Install Location ## | ||
graphical | graphical | ||
- | nfs --server=10.0.0.200 --dir=/ISO/ | + | nfs --server=10.1.2.3 --dir=/iso/ |
## Locale Settings ## | ## Locale Settings ## | ||
Line 122: | Line 145: | ||
## System Configuration ## | ## System Configuration ## | ||
- | rootpw | + | rootpw |
####################################### | ####################################### | ||
Line 150: | Line 173: | ||
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 172: | Line 195: | ||
## 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 | ||
</ | </ | ||