commit d2f04a5ce627f77d6548344327702104d5ec82e0
parent 19e1492203323e49613cefb372d8ed5dfe1e9347
Author: Jan Pobříslo <ccx@te2000.cz>
Date: Thu, 16 Dec 2021 18:58:46 +0000
Make container tmpfs directory before pruning it.
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/sbin/container_sysroot_run b/sbin/container_sysroot_run
@@ -23,7 +23,9 @@ foreground {
if { touch ${CONTAINER_TMPFS}.lockfile }
s6-setlock -n ${CONTAINER_TMPFS}.lockfile
-# This is non-POSIX but even busybox has these flags
+# Needs to exists otherwise the find below fails.
+if { mkdir -p ${CONTAINER_TMPFS} }
+# This is non-POSIX but even busybox has these flags.
if { find ${CONTAINER_TMPFS} -depth -mindepth 2 -delete }
#if { rm -rf ${CONTAINER_TMPFS} }