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