-
Notifications
You must be signed in to change notification settings - Fork 345
/
anaconda-autogui-testing.ks
51 lines (42 loc) · 1.41 KB
/
anaconda-autogui-testing.ks
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
%include /usr/share/spin-kickstarts/fedora-live-workstation.ks
url --mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=rawhide&arch=x86_64
shutdown
network --bootproto=dhcp --activate --device=link
rootpw qweqwe
# Override dumb values from the spin-kickstarts.
bootloader --location=mbr
zerombr
clearpart --all
part / --fstype="ext4" --size=10240
%post
cat >> /etc/rc.d/init.d/livesys << EOF
# Mount the attached disk containing test suite information, if it exists.
blkid -l -t LABEL=ANACTEST
if [ \$? = 0 ]; then
mkdir /mnt/anactest
mount -L ANACTEST /mnt/anactest
chown -R liveuser.liveuser /mnt/anactest
if [ -f /usr/share/applications/anaconda.desktop ]; then
# Make anaconda start automatically.
if [ -f ~liveuser/.config/autostart/fedora-welcome.desktop ]; then
rm ~liveuser/.config/autostart/fedora-welcome.desktop
fi
cp /usr/share/applications/anaconda.desktop ~liveuser/.config/autostart/
sed -i -e '/Exec=/ s|/usr/bin/liveinst|python /mnt/anactest/suite.py|' ~liveuser/.config/autostart/anaconda.desktop
# Enable accessibility needed for testing.
cat >> /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.override << FOE
[org.gnome.desktop.interface]
toolkit-accessibility=true
FOE
fi
fi
EOF
%end
%packages
@^workstation-product-environment
-@fedora-release-nonproduct
dogtail
syslinux
-@libreoffice
-java*
%end