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