Public bug reported: Code in /lib/systemd/system/systemd-resolved.service seeks to populate /etc/resolv.conf if it is empty:
ExecStartPre=-+/bin/sh -c '[ ! -s /etc/resolv.conf ] && ln -snf ../run/systemd/resolve/stub-resolv.conf' However the code is just wrong, and writes a symlink to /stub-resolv.conf rather than /etc/resolv.conf ProblemType: Bug DistroRelease: Ubuntu 17.10 Package: systemd 234-2ubuntu9 ProcVersionSignature: Ubuntu 4.12.0-13.14-generic 4.12.10 Uname: Linux 4.12.0-13-generic x86_64 ApportVersion: 2.20.7-0ubuntu1 Architecture: amd64 CurrentDesktop: ubuntu:GNOME Date: Wed Sep 13 00:55:32 2017 EcryptfsInUse: Yes InstallationDate: Installed on 2016-08-16 (392 days ago) InstallationMedia: Ubuntu 16.04.1 LTS "Xenial Xerus" - Release amd64 (20160719) MachineType: HP HP Spectre Notebook ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.12.0-13-generic root=UUID=4989886a-f95e-4802-ab51-dcbf53167aeb ro quiet splash vt.handoff=7 SourcePackage: systemd UpgradeStatus: Upgraded to artful on 2017-08-31 (12 days ago) dmi.bios.date: 02/21/2017 dmi.bios.vendor: Insyde dmi.bios.version: F.31 dmi.board.asset.tag: Type2 - Board Asset Tag dmi.board.name: 81A0 dmi.board.vendor: HP dmi.board.version: 48.54 dmi.chassis.type: 10 dmi.chassis.vendor: HP dmi.chassis.version: Chassis Version dmi.modalias: dmi:bvnInsyde:bvrF.31:bd02/21/2017:svnHP:pnHPSpectreNotebook:pvrType1ProductConfigId:rvnHP:rn81A0:rvr48.54:cvnHP:ct10:cvrChassisVersion: dmi.product.family: 103C_5335KV G=N L=CON B=HP S=SPT dmi.product.name: HP Spectre Notebook dmi.product.version: Type1ProductConfigId dmi.sys.vendor: HP modified.conffile..etc.systemd.resolved.conf: [modified] mtime.conffile..etc.systemd.resolved.conf: 2017-09-02T14:44:21.354384 ** Affects: systemd (Ubuntu) Importance: Undecided Status: New ** Tags: amd64 apport-bug artful -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to systemd in Ubuntu. https://bugs.launchpad.net/bugs/1716801 Title: Spurious creation of /stub-resolv.conf symlink To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1716801/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs