forked from rhinstaller/kickstart-tests
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontainer.ks.in
56 lines (48 loc) · 1.23 KB
/
container.ks.in
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
52
53
54
55
56
#version=DEVEL
url @KSTEST_URL@
install
network --bootproto=dhcp
bootloader --disabled
zerombr
clearpart --all --initlabel
autopart
keyboard us
lang en_US.UTF-8
timezone America/New_York --utc
rootpw testcase
shutdown
%packages --nocore
-kernel
bash
%end
%post
# (1) No kernel should be installed.
rpm -q kernel
if [[ $? == 0 ]]; then
echo '*** No kernel package should have been installed' > /root/RESULT
exit 1
fi
# (2) No bootloader package should be installed.
count=$(rpm -qa grub2\* | wc -l)
if [[ $count -gt 0 ]]; then
echo '*** No bootloader package should have been installed' > /root/RESULT
exit 1
fi
# (3) No authconfig or firewall packages should be installed.
count=$(rpm -qa authconfig\* firewall\* | wc -l)
if [[ $count -gt 0 ]]; then
echo '*** No authconfig or firewall packages should have been installed' > /root/RESULT
exit 1
fi
# (4) Not too much other stuff should be installed - the packages we asked for,
# whatever are dependencies of it, and whatever anaconda decided is needed for
# our storage config.
count=$(rpm -qa \* | wc -l)
if [[ $count -gt 200 ]]; then
echo '*** Too much stuff was installed' > /root/RESULT
exit 1
fi
if [ ! -e /root/RESULT ]; then
echo SUCCESS > /root/RESULT
fi
%end