From cb3b1984600d862440e6ff4e0da34589cf5c1813 Mon Sep 17 00:00:00 2001 From: Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com> Date: Thu, 30 Apr 2020 01:12:13 +0200 Subject: [PATCH] Attempt to fix name resolution (#4) Option 2: Embark resolvconf. Does not work as expected. $SNAP/sbin/resolvconf fails at execution with: mkdir: cannot create directory '/run/resolvconf': Permission denied --- snap/snapcraft.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index 65c3a27..5e5fa5a 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -19,6 +19,8 @@ architectures: layout: /usr/sbin/pppd: bind-file: $SNAP/usr/sbin/pppd + /sbin/resolvconf: + bind-file: $SNAP/sbin/resolvconf /etc/openfortivpn: bind: $SNAP_COMMON @@ -36,6 +38,7 @@ parts: plugin: autotools configflags: - --with-pppd=/usr/sbin/pppd + - --with-resolvconf=/sbin/resolvconf build-packages: - git - build-essential @@ -44,9 +47,14 @@ parts: - libsystemd-dev stage-packages: - ppp + - resolvconf stage: - bin/openfortivpn + - etc/network/* - etc/ppp/* + - etc/resolvconf/* + - lib/resolvconf/list-records + - sbin/resolvconf - share/* - usr/sbin/pppd - usr/lib -- GitLab