Merge "Workaround to fix amphora-agent on centos"

This commit is contained in:
Zuul 2021-11-15 16:07:58 +00:00 committed by Gerrit Code Review
commit 74f3242c8e
2 changed files with 9 additions and 2 deletions

View File

@ -0,0 +1,4 @@
[main]
# Set dns to none, it prevents NetworkManager to update the /etc/resolv.conf
# file.
dns=none

View File

@ -1,6 +1,9 @@
#!/bin/bash
echo "" > /etc/resolv.conf
echo "" > /etc/resolv.conf.ORIG
# Override resolv.conf file from DIB with a custom one.
# Having at least one nameserver is now required by dnfpython (>=)
echo "nameserver 127.0.0.1" > /etc/resolv.conf
echo "nameserver 127.0.0.1" > /etc/resolv.conf.ORIG
if [ -d /etc/dhcp/dhclient-enter-hooks.d ]
then
# Debian/Ubuntu