Merge "Workaround to fix amphora-agent on centos"
This commit is contained in:
commit
74f3242c8e
@ -0,0 +1,4 @@
|
|||||||
|
[main]
|
||||||
|
# Set dns to none, it prevents NetworkManager to update the /etc/resolv.conf
|
||||||
|
# file.
|
||||||
|
dns=none
|
@ -1,6 +1,9 @@
|
|||||||
#!/bin/bash
|
#!/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 ]
|
if [ -d /etc/dhcp/dhclient-enter-hooks.d ]
|
||||||
then
|
then
|
||||||
# Debian/Ubuntu
|
# Debian/Ubuntu
|
||||||
|
Loading…
x
Reference in New Issue
Block a user