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/11/28 22:45] billdozor [CentOS 6 Example Kickstart File] |
linux_wiki:os_install_kickstart [2016/11/29 22:13] billdozor |
||
---|---|---|---|
Line 197: | Line 197: | ||
reboot --eject | reboot --eject | ||
+ | #### Auto execute post install commands #### | ||
%post --interpreter /bin/sh --log=/ | %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 | + | # Startup rpcbind for NFS |
- | systemctl start rpcbind | + | #systemctl start rpcbind |
- | ## Mount admin share | + | # Mount admin share |
- | mount -vt nfs 10.1.2.3:/ | + | #mount -vt nfs 10.1.2.3:/ |
- | ## Create / | + | # Create / |
- | mkdir / | + | #mkdir / |
- | ## Copy the firstboot script to the new dir, set owner/ | + | # Copy the firstboot script to the new dir, set owner/ |
- | cp -v / | + | #cp -v / |
- | chown -Rv root:root / | + | #chown -Rv root:root / |
- | chmod -Rv 700 / | + | #chmod -Rv 700 / |
- | ## Copy firstboot service unit to system, set owner/ | + | # Copy firstboot service unit to system, set owner/ |
- | cp -v / | + | #cp -v / |
- | chown -v root:root / | + | #chown -v root:root / |
- | chmod -v 644 / | + | #chmod -v 644 / |
- | ## Enable firstboot service for next boot | + | # Enable firstboot service for next boot |
- | systemctl enable firstboot.service | + | #systemctl enable firstboot.service |
- | ## Un-mount admin share | + | # Un-mount admin share |
- | umount -v /mnt | + | #umount -v /mnt |
) | ) | ||
%end | %end | ||
Line 230: | Line 233: | ||
---- | ---- | ||
- | ===== 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. |