forked from rhinstaller/kickstart-tests
-
Notifications
You must be signed in to change notification settings - Fork 0
/
packages-excludedocs.ks.in
48 lines (42 loc) · 956 Bytes
/
packages-excludedocs.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
#version=DEVEL
url @KSTEST_URL@
install
network --bootproto=dhcp
bootloader --timeout=1
zerombr
clearpart --all --initlabel
autopart
keyboard us
lang en_US.UTF-8
timezone America/New_York --utc
rootpw testcase
shutdown
%packages --excludedocs
@container-management
@core
@domain-client
@hardware-support
@headless-management
@server-product
@standard
%end
%post
if [ ! -d /usr/share/doc ]; then
echo SUCCESS > /root/RESULT
else
cd /usr/share/doc
count=$(find . -type f | grep -v -E "^\.$" | wc -l)
if [ $count -eq 0 ]; then
dirs=$(find . -type d | grep -v -E "^\.$" | wc -l)
if [ $dirs -eq 0 ]; then
echo SUCCESS > /root/result
else
echo "SUCCESS - but directories still exist under /usr/share/doc" > /root/RESULT
fi
else
echo "there are files in /usr/share/doc" > /root/RESULT
echo >> /root/RESULT
find /usr/share/doc >> /root/RESULT
fi
fi
%end