diff mbox

[2/2] KVM test: Adding new Fedora-nightly.ks unattended file

Message ID 1256161728-4440-2-git-send-email-lmr@redhat.com (mailing list archive)
State New, archived
Headers show

Commit Message

Lucas Meneghel Rodrigues Oct. 21, 2009, 9:48 p.m. UTC
None
diff mbox

Patch

diff --git a/client/tests/kvm/unattended/Fedora-11.ks b/client/tests/kvm/unattended/Fedora-11.ks
index cfd30ea..23f1d8a 100644
--- a/client/tests/kvm/unattended/Fedora-11.ks
+++ b/client/tests/kvm/unattended/Fedora-11.ks
@@ -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
+
diff --git a/client/tests/kvm/unattended/Fedora-nightly.ks b/client/tests/kvm/unattended/Fedora-nightly.ks
new file mode 100644
index 0000000..34191ff
--- /dev/null
+++ b/client/tests/kvm/unattended/Fedora-nightly.ks
@@ -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()
+