From c026bd788f96143bab98550b77a2c818cb4271a3 Mon Sep 17 00:00:00 2001 From: Adam Stolcenburg Date: Wed, 17 Dec 2025 15:52:44 +0100 Subject: [PATCH] Fix execution of applications without base rootfs structure MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Applications whose packages do not provide the expected base rootfs directories (such as /dev, /proc, /sys, or /tmp) may fail when launched through the bolt tool. If the RW overlay is enabled and the container/application user has write permissions, these directories can be created automatically. This update ensures that non‑root users receive appropriate write access to the RW overlay, enabling creation of missing directories during container startup. Ref: #RDKEAPPRT-499 --- bolt/src/run.cjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bolt/src/run.cjs b/bolt/src/run.cjs index 01b9b00..346ac54 100644 --- a/bolt/src/run.cjs +++ b/bolt/src/run.cjs @@ -184,7 +184,7 @@ function prepareBundle(remote, pkg, bundleConfig, layers, options) { bundleConfig.process.env.push('HOME=' + config.PROCESS_HOME_DIR); if (rwOverlay) { - rwDirs = `${bundleDir}/rw/work ${bundleDir}/rw/upper${config.PROCESS_HOME_DIR}`; + rwDirs = `${bundleDir}/rw/work ${bundleDir}/rw/upper ${bundleDir}/rw/upper${config.PROCESS_HOME_DIR}`; upperDirMount = `,upperdir=${bundleDir}/rw/upper,workdir=${bundleDir}/rw/work`; } else { rwDirs = `${bundleDir}${config.PROCESS_HOME_DIR}`;