From 0546da2408cb4e636d1f501dabdff99c5deda1f2 Mon Sep 17 00:00:00 2001 From: Giuseppe Scrivano Date: Mon, 30 May 2016 19:23:27 +0200 Subject: [PATCH] atomic: remove any symlink from the destination path Convert /ostree -> /sysroot/ostree as runc doesn't like symlinks in the path to the bundle Signed-off-by: Giuseppe Scrivano Closes: #396 Approved by: rhatdan --- Atomic/atomic.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Atomic/atomic.py b/Atomic/atomic.py index a962980..e0cbd28 100644 --- a/Atomic/atomic.py +++ b/Atomic/atomic.py @@ -1124,6 +1124,7 @@ class Atomic(object): sysroot.load() osname = sysroot.get_booted_deployment().get_osname() destination = os.path.join("/ostree/deploy/", osname, os.path.relpath(destination, "/")) + destination = os.path.realpath(destination) except: pass rootfs = os.path.join(destination, "rootfs")