From 925b5ca1ddd2890ed12f23f715233548d6733194 2016-09-16 09:01:08 From: Michal Švamberg Date: 2016-09-16 09:01:08 Subject: [PATCH] Don't create symlink if exists /etc/resolv.conf FIX: if /etc/resolv.conf created other dhcp client then rc.firstboot finish with exit code and don't removed itself from rc.local. --- diff --git a/files/firstboot/25-create-resolv-symlink.sh b/files/firstboot/25-create-resolv-symlink.sh index 8a3f00b..99c4ea0 100644 --- a/files/firstboot/25-create-resolv-symlink.sh +++ b/files/firstboot/25-create-resolv-symlink.sh @@ -11,5 +11,7 @@ if [ ! -f "/run/systemd/resolve/resolv.conf" ] ; then touch /run/systemd/resolve/resolv.conf fi -# Create symlink to /etc/reolv.conf -ln -s /run/systemd/resolve/resolv.conf /etc/resolv.conf +# Create symlink to /etc/reolv.conf if not exists yet +if [ ! -e "/etc/resolv.conf" ] ; then + ln -s /run/systemd/resolve/resolv.conf /etc/resolv.conf +fi