38f3e28d77
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.
39 lines
794 B
Plaintext
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
|