Skip to content

Commit

Permalink
Create /usr/lib64/qemu-kvm with proper permissions
Browse files Browse the repository at this point in the history
Workaround for moby/moby#44106

Need to create the directory upfront, otherwise it gets assigned wrong
permissions when unpacked.

Signed-off-by: Vasiliy Ulyanov <vulyanov@suse.de>
  • Loading branch information
vasiliy-ul authored and kubevirt-bot committed Sep 14, 2022
1 parent 4c08bf0 commit 0016975
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions cmd/virt-launcher/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,18 @@ pkg_tar(
package_dir = "/etc",
)

# Workaround for https://github.com/moby/moby/issues/44106
# Need to create the directory upfront, otherwise it gets assigned wrong
# permissions when unpacked.
pkg_tar(
name = "qemu-kvm-modules-dir-tar",
empty_dirs = [
"usr/lib64/qemu-kvm",
],
mode = "0755",
owner = "0.0",
)

container_image(
name = "version-container",
directory = "/",
Expand All @@ -163,12 +175,14 @@ container_image(
":libvirt-config",
":passwd-tar",
":nsswitch-tar",
":qemu-kvm-modules-dir-tar",
"//rpm:launcherbase_aarch64",
],
"//conditions:default": [
":libvirt-config",
":passwd-tar",
":nsswitch-tar",
":qemu-kvm-modules-dir-tar",
"//rpm:launcherbase_x86_64",
],
}),
Expand Down

0 comments on commit 0016975

Please sign in to comment.