rancher / elemental-toolkit

:snowflake: The toolkit to build, ship and maintain cloud-init driven Linux derivatives based on container images
https://rancher.github.io/elemental-toolkit/docs/
Apache License 2.0
290 stars 49 forks source link

Fix overlaydir setup #2094

Closed davidcassany closed 4 months ago

davidcassany commented 4 months ago

This PR makes sure that the mountpoints of persistent paths that are not persisted under /run include the /sysroot prefix.

I was moving the persistent partition away from /run (e.g. /var) and I realized the mount action was creating the <mountpoint>/.state/<path> folders without the /sysroot prefix.