util/containers: update storage location
Change the contianers store from `/containers/storage` to `/var/tmp/containers/storage` since technically `/containers/storage` isn't ostree compatible.
This commit is contained in:
parent
945209a80c
commit
36d1187c35
1 changed files with 4 additions and 2 deletions
|
|
@ -116,8 +116,10 @@ def containers_storage_source(image, image_filepath, container_format):
|
|||
storage_conf = image["data"]["storage"]
|
||||
driver = storage_conf.get("driver", "overlay")
|
||||
|
||||
# use `/containers/storage` for the containers-storage bind mount
|
||||
storage_path = os.path.join(os.sep, "containers", "storage")
|
||||
# use `/run/osbuild/containers/storage` for the containers-storage bind mount
|
||||
# since this ostree-compatible and the stage that uses this will be run
|
||||
# inside a ostree-based build-root in `bootc-image-builder`
|
||||
storage_path = os.path.join(os.sep, "run", "osbuild", "containers", "storage")
|
||||
os.makedirs(storage_path, exist_ok=True)
|
||||
|
||||
with MountGuard() as mg:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue