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