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:
MacRimi
2026-10-19 17:06:49 +02:00
parent 1511680a95
commit 3e3e0916f2
3 changed files with 17 additions and 1 deletions
+2 -1
View File
@@ -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: