The following pull request was submitted through Github.
It can be accessed and reviewed at: https://github.com/lxc/lxd-pkg-snap/pull/3

This e-mail was sent by the LXC bot, direct replies will not reach the author
unless they happen to be subscribed to this list.

=== Description (from pull-request) ===
Signed-off-by: Alberto Donato <alberto.don...@gmail.com>
From 2cec23f8015f4aba44916ff6df379eb5106b35d2 Mon Sep 17 00:00:00 2001
From: Alberto Donato <alberto.don...@gmail.com>
Date: Wed, 11 Oct 2017 11:16:57 +0200
Subject: [PATCH] don't change path in lxc wrapper

Signed-off-by: Alberto Donato <alberto.don...@gmail.com>
---
 snapcraft/wrappers/lxc | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/snapcraft/wrappers/lxc b/snapcraft/wrappers/lxc
index f01684d..9d0e84b 100755
--- a/snapcraft/wrappers/lxc
+++ b/snapcraft/wrappers/lxc
@@ -6,15 +6,6 @@ if [ -d /sys/kernel/security/apparmor ] && [ "$(cat 
/proc/self/attr/current)" !=
     exec aa-exec -p unconfined -- "$0" "$@"
 fi
 
-# Move to the right directory
-PWD=$(pwd)
-if [ "${PWD}" = "/var/lib/snapd/void" ]; then
-    PWD="$(readlink -f "/proc/${PPID}/cwd" || true)"
-fi
-if [ -n "${PWD}" ]; then
-    cd "/var/lib/snapd/hostfs/${PWD}" 2>/dev/null || true
-fi
-
 # Set the environment
 export LXD_DIR=${SNAP_COMMON}/lxd/
 export EDITOR=vim.tiny
_______________________________________________
lxc-devel mailing list
lxc-devel@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-devel

Reply via email to