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