Skip to content

Commit

Permalink
don't include homedir
Browse files Browse the repository at this point in the history
  • Loading branch information
praiskup committed Dec 11, 2024
1 parent 2ae3605 commit 1543c03
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mock/py/mockbuild/plugins/oci_as_buildroot.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ def _produce_image_as_root(self):
chroot = self.buildroot.make_chroot_path()
self.do(["buildah", "from", "--name", name, "scratch"])
self.do(["buildah", "add", name, chroot, "/"])
self.do(["buildah", "run", name, "rm", "-rf",
self.buildroot.config["chroothome"]])
self.do(["buildah", "commit", "--format", "oci", name,
"oci-archive:" + tarball])
self.do(["buildah", "rm", name])
Expand Down

0 comments on commit 1543c03

Please sign in to comment.