forked from rhinstaller/kickstart-tests
-
Notifications
You must be signed in to change notification settings - Fork 0
/
proxy-cmdline.ks.in
41 lines (34 loc) · 899 Bytes
/
proxy-cmdline.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
url @KSTEST_URL@
install
network --bootproto=dhcp
bootloader --timeout=1
zerombr
clearpart --all
autopart
keyboard us
lang en
timezone America/New_York
rootpw qweqwe
shutdown
# Just install @core
%packages
%end
# Run the proxy
%include scripts/proxy-common.ks
%post --nochroot
# Look for the following as evidence that a proxy was used:
# a .treeinfo request
# primary.xml from the repodata
# a package. Let's say kernel, there should definitely have been a kernel
if ! grep -q '\.treeinfo$' /tmp/proxy.log; then
result='.treeinfo request was not proxied'
elif ! grep -q 'repodata/.*primary.xml' /tmp/proxy.log; then
result='repodata requests were not proxied'
elif ! grep -q 'kernel-.*\.rpm' /tmp/proxy.log; then
result='package requests were not proxied'
else
result='SUCCESS'
fi
# Write the result to the installed /root
echo "$result" > $ANA_INSTALL_PATH/root/RESULT
%end