You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
441 B

2 years ago
#!/bin/sh -eux
case "$PACKER_BUILDER_TYPE" in
virtualbox-iso|virtualbox-ovf)
# Fix slow DNS:
# Add 'single-request-reopen' so it is included when /etc/resolv.conf is
# generated
# https://access.redhat.com/site/solutions/58625 (subscription required)
echo 'RES_OPTIONS="single-request-reopen"' >>/etc/sysconfig/network;
service network restart;
echo 'Slow DNS fix applied (single-request-reopen)';
;;
esac