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.
 
 
 
 

15 lines
441 B

#!/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