summaryrefslogtreecommitdiffstats
path: root/mkosi.conf.d
diff options
context:
space:
mode:
authorDaan De Meyer <daan.j.demeyer@gmail.com>2024-07-10 10:07:05 +0200
committerDaan De Meyer <daan.j.demeyer@gmail.com>2024-07-10 10:55:33 +0200
commit612a98a0652387d857198cb92dea03ddf1bbbe43 (patch)
tree9636a10ebfad15c72560e5733797863ce185e2a6 /mkosi.conf.d
parentmkosi: Install erofs-utils (diff)
downloadsystemd-612a98a0652387d857198cb92dea03ddf1bbbe43.tar.xz
systemd-612a98a0652387d857198cb92dea03ddf1bbbe43.zip
mkosi: Build a sysext if SYSEXT=1 is specified
Diffstat (limited to 'mkosi.conf.d')
-rwxr-xr-xmkosi.conf.d/10-centos-fedora/mkosi.build.chroot4
-rwxr-xr-xmkosi.conf.d/10-opensuse/mkosi.build.chroot4
2 files changed, 8 insertions, 0 deletions
diff --git a/mkosi.conf.d/10-centos-fedora/mkosi.build.chroot b/mkosi.conf.d/10-centos-fedora/mkosi.build.chroot
index 21f106292b..37a4377f2f 100755
--- a/mkosi.conf.d/10-centos-fedora/mkosi.build.chroot
+++ b/mkosi.conf.d/10-centos-fedora/mkosi.build.chroot
@@ -2,6 +2,8 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
set -e
+. mkosi.functions
+
if ((NO_BUILD)); then
exit 0
fi
@@ -120,3 +122,5 @@ CXX_LD="$( ((LLVM)) && echo lld)" \
cp "$OUTPUTDIR"/*.rpm "$PACKAGEDIR"
cp "$OUTPUTDIR"/*.rpm "$BUILDDIR"
+
+make_sysext_unsigned /var/tmp/BUILD/*/BUILDROOT
diff --git a/mkosi.conf.d/10-opensuse/mkosi.build.chroot b/mkosi.conf.d/10-opensuse/mkosi.build.chroot
index 67481d0b10..e9f1e8a123 100755
--- a/mkosi.conf.d/10-opensuse/mkosi.build.chroot
+++ b/mkosi.conf.d/10-opensuse/mkosi.build.chroot
@@ -2,6 +2,8 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
set -e
+. mkosi.functions
+
if ((NO_BUILD)); then
exit 0
fi
@@ -139,3 +141,5 @@ fi
cp "$OUTPUTDIR"/*.rpm "$PACKAGEDIR"
cp "$OUTPUTDIR"/*.rpm "$BUILDDIR"
+
+make_sysext_unsigned /var/tmp/BUILD/*/BUILDROOT