1
0
mirror of https://github.com/projectatomic/atomic.git synced 2026-02-05 18:45:01 +01:00

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 <gscrivan@redhat.com>

Closes: #396
Approved by: rhatdan
This commit is contained in:
Giuseppe Scrivano
2016-05-30 19:23:27 +02:00
committed by Atomic Bot
parent 95e59f643b
commit 0546da2408

View File

@@ -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")