use old resolv.conf until systemd is on

This commit is contained in:
Aiden McClelland
2022-10-25 18:02:28 -06:00
committed by Aiden McClelland
parent 2642ec85e5
commit 6da0a473be

View File

@@ -29,6 +29,7 @@ ln -s /usr/share/zoneinfo/Etc/UTC /etc/localtime
# switch to systemd-resolved & network-manager
echo "#" > /etc/network/interfaces
[ -f /run/systemd/resolve/stub-resolv.conf ] || mkdir -p /run/systemd/resolve && cp /etc/resolv.conf /run/systemd/resolve/stub-resolv.conf
ln -rsf /run/systemd/resolve/stub-resolv.conf /etc/resolv.conf
cat << EOF > /etc/NetworkManager/NetworkManager.conf
[main]