File fix-selinux-label.patch of Package build
From cedece4f90b1e8f9386dd69d34e193a0303e0822 Mon Sep 17 00:00:00 2001
From: Joshua Smith <smolsheep@opensuse.org>
Date: Thu, 19 Sep 2024 06:45:59 -0400
Subject: [PATCH] Relabel mount to allow SELinux+Podman builds. Fixes
boo#1230743
---
build-vm-podman | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/build-vm-podman b/build-vm-podman
index b0184756a..32ca87cf0 100644
--- a/build-vm-podman
+++ b/build-vm-podman
@@ -35,7 +35,7 @@ vm_startup_podman() {
podman run \
--runtime=runc \
--rm --name "$name" --net=none $podman_opts \
- --mount "type=bind,source=$BUILD_ROOT,destination=/" \
+ --mount "type=bind,relabel=private,source=$BUILD_ROOT,destination=/" \
"$@" build-scratch:latest "$vm_init_script"
BUILDSTATUS="$?"
test "$BUILDSTATUS" != 255 || BUILDSTATUS=3