| 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=tty0 console=ttyS0,115200" | 13 bootloader --location=mbr --append="console=tty0 console=ttyS0,115200" |
| 14 zerombr | 14 zerombr |
| 15 poweroff |
| 15 | 16 |
| 16 clearpart --all --initlabel | 17 clearpart --all --initlabel |
| 17 autopart | 18 autopart |
| 18 | 19 |
| 19 %packages | 20 %packages |
| 20 @base | 21 @base |
| 21 @development-libs | 22 @development-libs |
| 22 @development-tools | 23 @development-tools |
| 23 ntpdate | 24 ntpdate |
| 24 %end | 25 %end |
| 25 | 26 |
| 26 %post --interpreter /usr/bin/python | 27 %post --interpreter /usr/bin/python |
| 27 import socket, os | 28 import socket, os |
| 28 os.system('dhclient') | 29 os.system('dhclient') |
| 29 os.system('chkconfig sshd on') | 30 os.system('chkconfig sshd on') |
| 30 os.system('iptables -F') | 31 os.system('iptables -F') |
| 31 os.system('echo 0 > /selinux/enforce') | 32 os.system('echo 0 > /selinux/enforce') |
| 32 server = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | 33 server = socket.socket(socket.AF_INET, socket.SOCK_STREAM) |
| 33 server.bind(('', 12323)) | 34 server.bind(('', 12323)) |
| 34 server.listen(1) | 35 server.listen(1) |
| 35 (client, addr) = server.accept() | 36 (client, addr) = server.accept() |
| 36 client.send("done") | 37 client.send("done") |
| 37 client.close() | 38 client.close() |
| 38 %end | 39 %end |
| OLD | NEW |