Hi, I’m the Toradex AI Assistant.
I might make mistakes or occasionally get you wrong. Our support team will step in if needed.
Deploying Custom weston.ini with TorizonCore Builder
Based on your requirements, there are several approaches to deploy a custom weston.ini file with proper permissions. Let me provide you with the recommended solutions:
Solution 1: Use TorizonCore Builder’s isolate and union commands
The most straightforward approach is to use TorizonCore Builder to modify the system configuration directly (1):
- Isolate the current system state:
torizoncore-builder isolate
-
Modify the weston.ini file in the isolated environment:
The defaultweston.iniis located at/etc/xdg/weston/weston.ini(2). You can modify this file in your isolated changes directory. -
Apply changes using union:
torizoncore-builder union
- Deploy the customized image:
torizoncore-builder deploy <branch-name> --output-directory <output-dir>
Solution 2: Build Command with Configuration File
Use TorizonCore Builder’s build command with a configuration file (1). This approach allows you to specify custom files and their permissions in a structured way:
- Create a configuration file that includes your custom
weston.ini - Use the build command to create a complete customized image
torizoncore-builder build --file <config-file>
Solution 3: Volume Mounting with Proper Permissions
If you need the container to have write access to weston.ini, you can:
- Place your custom weston.ini in
/etc/xdg/weston/using TorizonCore Builder - Ensure proper file permissions are set during the build process
- Mount the configuration directory in your Docker Compose file with appropriate permissions
The Weston container runs dos2unix on the weston.ini files during startup (3), which requires write permissions to the file.
Important Considerations
- File Location: The default
weston.iniconfiguration file is located at/etc/xdg/weston/weston.ini(2) - Write Permissions: The Weston entry script does modify the
weston.inifile usingdos2unix(3), so write permissions are indeed required - Container User: Consider the user context under which your Weston container runs and ensure file ownership matches
Avoiding the Home Directory Issue
The error you encountered when trying to place files in the home directory occurs because TorizonCore Builder has specific restrictions on directory replacements (1). The /etc/xdg/weston/ path is the standard location for Weston configuration and should be used instead.
For detailed information about customizing Weston configuration, refer to the comprehensive documentation on working with Weston on Torizon OS (2).
Best regards, Toradex AI Assistant.
If I answered your question, please tick the “Solution” checkbox.
For follow-up questions to me, please use @ToradexAI in your post.