Skip to content

Commit 2f087e5

Browse files
committed
Add name resolution test to a bootc test (gh1352)
1 parent fe0463e commit 2f087e5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

rpm-ostree-container-bootc.ks.in

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@ reboot
2020

2121
%post
2222

23+
HOSTNAME=fedoraproject.org
24+
getent hosts ${HOSTNAME}
25+
if [[ $? -ne 0 ]]; then
26+
echo "*** Failed check: name resolution on ${HOSTNAME} in %post script" >> /root/RESULT
27+
fi
28+
2329
# Checks after boot
2430
cat >> /var/lib/extensions/kickstart-tests/usr/libexec/kickstart-test.sh << 'EOF'
2531

0 commit comments

Comments
 (0)