rdkcentral / BundleGen

A command-line tool to convert OCI Images into extended OCI Bundles for use with the Dobby container manager.
Apache License 2.0
5 stars 32 forks source link

ONEM-31564 Bundlegen support for mount option X-mount.no #112

Closed sverkoye closed 11 months ago

sverkoye commented 11 months ago

Bundlegen support for adding file entry name in read only container rootfs without bind mount in run config

Problem scenario:

  1. suppose wayland socket to mount is passed via Dobby when starting the app
  2. then Dobby will add the socket mount entry dynamically to the config and will create a file on the rootfs for mounting to it
  3. on crypted and read-only rootfs (like dmverity) this last step will not work
  4. solution: ensure the file already exists inside the rootfs but without mount entry inside the config. Use this option: X-mount.no
  5. obviously also for the other mount entries you will need to use cmdline param --createmountpoints to ensure the file and dir entries are created in the rootfs