• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1install
2KVM_TEST_MEDIUM
3text
4reboot
5lang en_US
6keyboard us
7network --bootproto dhcp
8rootpw 123456
9firewall --enabled --ssh
10selinux --enforcing
11timezone --utc America/New_York
12firstboot --disable
13bootloader --location=mbr --append="console=tty0 console=ttyS0,115200"
14zerombr
15poweroff
16
17clearpart --all --initlabel
18autopart
19
20%packages
21@base
22@development-libs
23@development-tools
24ntpdate
25dmidecode
26%end
27
28%post --interpreter /usr/bin/python
29import socket, os
30os.system('dhclient')
31os.system('chkconfig sshd on')
32os.system('iptables -F')
33os.system('echo 0 > /selinux/enforce')
34server = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
35server.bind(('', 12323))
36server.listen(1)
37(client, addr) = server.accept()
38client.send("done")
39client.close()
40%end
41