stages: add new org.osbuild.bootc.install-to-filesystem

Support the `boot install to-filesystem` capability to install a
bootc image to a filesystem.
This commit is contained in:
Ondřej Budai 2024-01-19 08:30:09 +01:00 committed by Achilleas Koutsou
parent a85b51bb2c
commit 226b50eba5
2 changed files with 68 additions and 0 deletions

View file

@ -237,6 +237,12 @@ class BuildRoot(contextlib.AbstractContextManager):
mounts += ["--ro-bind-try",
os.path.join(self._rootdir, "etc/containers"),
"/etc/containers"]
mounts += ["--ro-bind-try",
os.path.join(self._rootdir, "ostree"),
"/ostree"]
mounts += ["--ro-bind-try",
os.path.join(self._rootdir, "etc/selinux/targeted/contexts"),
"/etc/selinux/targeted/contexts"]
# We execute our own modules by bind-mounting them from the host into
# the build-root. We have minimal requirements on the build-root, so