Skip to content

Commit 877e735

Browse files
tjamriskkrcmarik
authored andcommitted
shared/unattended/RHEL-6.3.ks: Start X when booting.
Start X right after boot and create test user to be used for Spice related tests. Signed-off-by: Tomas Jamrisko <tjamrisk@redhat.com> Signed-off-by: Marian Krcmarik <mkrcmari@redhat.com>
1 parent e63491c commit 877e735

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

shared/unattended/RHEL-6.3.ks

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,15 @@ lang en_US.UTF-8
66
keyboard us
77
key --skip
88
network --bootproto dhcp
9-
rootpw 123456
9+
rootpw --plaintext 123456
10+
user --name=test --password=123456 --plaintext
1011
firewall --enabled --ssh
1112
selinux --enforcing
1213
timezone --utc America/New_York
1314
firstboot --disable
1415
bootloader --location=mbr --append="console=tty0 console=ttyS0,115200"
1516
zerombr
17+
xconfig --startxonboot
1618
clearpart --all --initlabel
1719
autopart
1820
poweroff
@@ -37,8 +39,9 @@ virt-viewer
3739
spice-vdagent
3840
usbredir
3941
SDL
42+
%end
4043

41-
%post --interpreter /usr/bin/python
44+
%post --nochroot --interpreter /usr/bin/python
4245
import os
4346
os.system('grubby --remove-args="rhgb quiet" --update-kernel=$(grubby --default-kernel)')
4447
os.system('dhclient')
@@ -47,3 +50,8 @@ os.system('iptables -F')
4750
os.system('echo 0 > /selinux/enforce')
4851
os.system('echo Post set up finished > /dev/ttyS0')
4952
os.system('echo Post set up finished > /dev/hvc0')
53+
f = open('/mnt/sysimage/etc/gdm/custom.conf','w')
54+
f.write('[daemon]\n'
55+
'AutomaticLogin=test\n'
56+
'AutomaticLoginEnable=True\n')
57+
%end

0 commit comments

Comments
 (0)