Skip to content

Support running of apps without rw layer#19

Merged
astolcenburg merged 1 commit intordkcentral:mainfrom
astolcenburg:main
Dec 12, 2025
Merged

Support running of apps without rw layer#19
astolcenburg merged 1 commit intordkcentral:mainfrom
astolcenburg:main

Conversation

@astolcenburg
Copy link
Contributor

Ref: #RDKEAPPRT-487

Copilot AI review requested due to automatic review settings December 11, 2025 18:01
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds support for running bolt applications without a read-write overlay layer, providing a more restrictive filesystem environment where only a designated home directory is writable. The changes introduce a new command-line option --rw-overlay that allows users to enable or disable the overlay layer.

Key changes:

  • Added --rw-overlay=<true/false> option to control whether apps run with a full read-write overlay or with only a writable home directory
  • Moved HOME environment variable from static template to dynamic configuration, changing from /home/root to /home
  • Implemented conditional directory setup and mounting based on the rwOverlay option

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
bolt/src/config.cjs Adds PROCESS_HOME_DIR constant to centralize home directory configuration
bolt/src/runtime-config.cjs Removes static HOME environment variable from template in favor of dynamic configuration
bolt/src/run.cjs Implements core logic for rwOverlay option, including conditional directory setup, bind mounting, and option parsing
bolt/src/bolt.cjs Updates CLI help text to document the new --rw-overlay option
bolt/README.md Updates documentation to describe the new --rw-overlay option

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@astolcenburg astolcenburg merged commit 6ee7f29 into rdkcentral:main Dec 12, 2025
9 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Dec 12, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants