qubes-installer-qubes-os/anaconda/tests/kickstart_tests/proxy-cmdline.ks
M. Vefa Bicakci 38f3e28d77
anaconda: Update to 23.19.10
Use the output of

  git diff --full-index --binary anaconda-22.20.13-1..anaconda-23.19.10-1

from anaconda's git repository and fix-up merge conflicts.
2016-04-10 00:00:00 -04:00

42 lines
967 B
Plaintext

url --url=http://dl.fedoraproject.org/pub/fedora/linux/development/$releasever/$basearch/os/
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 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