qubes-installer-qubes-os/anaconda/tests/kickstart_tests/hostname.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

39 lines
794 B
Plaintext

url --url="http://dl.fedoraproject.org/pub/fedora/linux/development/$releasever/$basearch/os/"
install
network --bootproto=dhcp
# Set hostname for testing
network --hostname=testhostname.example.com
bootloader --timeout=1
zerombr
clearpart --all
autopart
keyboard us
lang en
timezone America/New_York
rootpw qweqwe
shutdown
%packages
%end
%post
HOSTNAME="testhostname.example.com"
# Check if hostname is set to the system
grep -q "^${HOSTNAME}$" /etc/hostname
if [[ $? -ne 0 ]]; then
echo '*** hostname is not set to /etc/hostname' >> /root/RESULT
fi
hostnamectl --static | grep -q "^${HOSTNAME}$"
if [[ $? -ne 0 ]]; then
echo '*** hostnamectl --static does not return correct hostname' >> /root/RESULT
fi
if [[ ! -e /root/RESULT ]]; then
echo SUCCESS > /root/RESULT
fi
%end