diff --git a/extra/pre-build.d/etc/resolvconf.conf.failover b/extra/pre-build.d/etc/resolvconf.conf.failover new file mode 100644 index 0000000..e834bb2 --- /dev/null +++ b/extra/pre-build.d/etc/resolvconf.conf.failover @@ -0,0 +1,8 @@ +# Configuration for resolvconf(8) +# See resolvconf.conf(5) for details + +resolv_conf=/etc/resolv.conf +# If you run a local name server, you should uncomment the below line and +# configure your subscribers configuration files below. +#name_servers=127.0.0.1 +name_servers='4.2.2.1 4.2.2.2 4.2.2.3' diff --git a/overlay/etc/systemd/scripts/livecd.fix.sh b/overlay/etc/systemd/scripts/livecd.fix.sh index 62b64f4..bf3c022 100755 --- a/overlay/etc/systemd/scripts/livecd.fix.sh +++ b/overlay/etc/systemd/scripts/livecd.fix.sh @@ -39,6 +39,8 @@ do ifconfig ${i} down fi netctl restart ${i} > /dev/null 2>&1 + cat /etc/resolvconf.conf.failover > /etc/resolvconf.conf + resolvconf -u done }