Last active
June 4, 2018 06:13
-
-
Save jnovack/206c0d9d7b2185dc2d04025a92e6075e to your computer and use it in GitHub Desktop.
CentOS 7 - Custom Kickstart Build
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ... | |
# This is by default and unedited | |
label linux | |
menu label ^Install CentOS Linux 7 | |
kernel vmlinuz | |
append initrd=initrd.img inst.stage2=hd:LABEL=CentOS\x207\x20x86_64 quiet | |
# This is by default and unedited | |
label check | |
menu label Test this ^media & install CentOS Linux 7 | |
kernel vmlinuz | |
append initrd=initrd.img inst.stage2=hd:LABEL=CentOS\x207\x20x86_64 rd.live.check quiet | |
# This is a custom addition providing "nameserver", and "inst.ks" variables. | |
label custom | |
menu label ^Kickstart via spacewalk.my-company.internal (CentOS-7) | |
kernel vmlinuz | |
append initrd=initrd.img inst.stage2=hd:LABEL=CentOS\x207\x20x86_64 rd.live.check quiet nameserver=192.168.0.8 nameserver=192.168.0.4 inst.ks=http://spacewalk.my-company.internal/ks/cfg/org/1/label/CentOS-7 | |
# This is a standard "boot from first hard drive" here for documentation/retention/ease-of-use purposes | |
label harddrive | |
menu label ^Boot from Hard Drive | |
menu default | |
localboot 0x80 | |
append SLX=0x80 | |
# ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
build: | |
genisoimage \ | |
-U -r -v -T -J -joliet-long \ | |
-V 'CentOS 7 x86_64' \ | |
-volset 'CentOS 7 x86_64' \ | |
-A 'CentOS 7 x86_64' \ | |
-b isolinux/isolinux.bin \ | |
-c isolinux/boot.cat \ | |
-no-emul-boot \ | |
-boot-load-size 4 \ | |
-boot-info-table \ | |
-eltorito-alt-boot \ | |
-e images/efiboot.img \ | |
-no-emul-boot \ | |
-o CentOS-7-x86_64-custom-1611.iso \ | |
CentOS-7-x86_64-custom-1611/ | |
implantisomd5 --supported-iso CentOS-7-x86_64-custom-1611.iso |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment