Created
January 14, 2016 02:52
-
-
Save davidlu1001/1a570bfbb64398516c4e to your computer and use it in GitHub Desktop.
RHEL/CentOS kickstart file
This file contains hidden or 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
| # vi /tftpboot/apache_doc/ksconfig/0026b93a2ae6 | |
| lang en_US | |
| langsupport zh_CN en_US --default=en_US | |
| keyboard us | |
| mouse | |
| timezone Asia/Shanghai | |
| rootpw ucanNOTsee88@me | |
| reboot | |
| install | |
| #nfs --server=10.10.10.1 --dir=/tftpboot/apache_doc/system/CentOS53 | |
| url --url http://10.10.10.1/system/CentOS53 | |
| text | |
| bootloader --location=mbr | |
| zerombr yes | |
| clearpart --drives sda --initlabel | |
| part /boot --fstype ext3 --size 256 --asprimary --ondisk sda | |
| part swap --size 2048 --asprimary --ondisk sda | |
| part / --fstype ext3 --size 20480 --asprimary --ondisk sda | |
| part /home --fstype ext3 --size 1 --grow --ondisk sda | |
| auth --useshadow --enablemd5 | |
| #network --bootproto=dhcp --device=eth0 | |
| network --device=eth0 --bootproto=static --ip=10.10.10.66 --netmask=255.255.255.0 --gateway=10.10.10.1 --nameserver=8.8.8.8 --hostname=test.testOrg.com | |
| firewall --disabled | |
| skipx | |
| %packages --resolvedeps | |
| @ development-tools | |
| @ admin-tools | |
| @ system-tools | |
| %post | |
| /root/sys_init.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment