mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2026-11-01 10:22:08 +00:00
fix(oci): clean format directories of a running container
- Open the container root without O_NOFOLLOW, as /proc/<pid>/root is a link - Keep the /config preparation of JDownloader in its overlay
This commit is contained in:
@@ -84,7 +84,8 @@ def remove_empty_format_directories(rootfs, deployment, backed_only=True, target
|
||||
if not paths:
|
||||
return 0
|
||||
flags = os.O_RDONLY | os.O_DIRECTORY | os.O_NOFOLLOW
|
||||
root = os.open(rootfs, flags)
|
||||
# A running container is reached through /proc/<pid>/root, a link.
|
||||
root = os.open(rootfs, os.O_RDONLY | os.O_DIRECTORY)
|
||||
removed = 0
|
||||
try:
|
||||
for path in paths:
|
||||
|
||||
Reference in New Issue
Block a user