@@ -12,11 +12,9 @@ timezone --utc America/New_York
firstboot --disable
bootloader --location=mbr
zerombr
-
clearpart --all --initlabel
-part /boot --fstype=ext3 --size=100
-part / --fstype=ext3 --size=9000
-part swap --fstype=swap --size=512
+autopart
+reboot
%packages
@admin-tools
@@ -39,3 +37,4 @@ client.connect(addr)
client.sendto('done', addr)
client.close()
%end
+
new file mode 100644
@@ -0,0 +1,39 @@
+install
+cdrom
+text
+reboot
+lang en_US
+keyboard us
+key --skip
+network --bootproto dhcp
+rootpw 123456
+firewall --enabled --ssh
+selinux --enforcing
+timezone --utc America/New_York
+firstboot --disable
+bootloader --location=mbr
+zerombr
+clearpart --all --initlabel
+autopart
+reboot
+
+%packages
+@ admin-tools
+@ base
+@ core
+@ development-libs
+@ development-tools
+
+%post --interpreter /usr/bin/python
+import socket, os
+os.system('chkconfig sshd on')
+os.system('iptables -F')
+os.system('echo 0 > /selinux/enforce')
+port = 12323
+buf = 1024
+addr = ('10.0.2.2', port)
+client = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
+client.connect(addr)
+client.sendto('done', addr)
+client.close()
+