diff options
author | Daan De Meyer <daan.j.demeyer@gmail.com> | 2024-04-16 13:59:20 +0200 |
---|---|---|
committer | Daan De Meyer <daan.j.demeyer@gmail.com> | 2024-04-16 15:25:37 +0200 |
commit | f1884281a01cfd6da0d61d7befb88dedfca5c669 (patch) | |
tree | 25b53954da65770e81864557e06af4b53b4d845a /mkosi.images/system | |
parent | mkosi: Install which in image (diff) | |
download | systemd-f1884281a01cfd6da0d61d7befb88dedfca5c669.tar.xz systemd-f1884281a01cfd6da0d61d7befb88dedfca5c669.zip |
mkosi: Add --noclean when running rpmbuild
The entire build environment is ephemeral anyway so everything is
cleaned regardless. By specifying --noclean, we make debugging
easier as the rpm build root can be inspected when using --debug-shell.
Diffstat (limited to 'mkosi.images/system')
-rwxr-xr-x | mkosi.images/system/mkosi.conf.d/10-centos-fedora/mkosi.build.chroot | 1 | ||||
-rwxr-xr-x | mkosi.images/system/mkosi.conf.d/10-opensuse/mkosi.build.chroot | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/mkosi.images/system/mkosi.conf.d/10-centos-fedora/mkosi.build.chroot b/mkosi.images/system/mkosi.conf.d/10-centos-fedora/mkosi.build.chroot index 242fc4aa40..371af8f4b9 100755 --- a/mkosi.images/system/mkosi.conf.d/10-centos-fedora/mkosi.build.chroot +++ b/mkosi.images/system/mkosi.conf.d/10-centos-fedora/mkosi.build.chroot @@ -48,6 +48,7 @@ rpmbuild \ --define "__elf_exclude_path ^/usr/lib/systemd/tests/unit-tests/.*$" \ --define "__script_requires %{nil}" \ --undefine _lto_cflags \ + --noclean \ "pkg/$ID/systemd.spec" cp "$OUTPUTDIR"/*.rpm "$PACKAGEDIR" diff --git a/mkosi.images/system/mkosi.conf.d/10-opensuse/mkosi.build.chroot b/mkosi.images/system/mkosi.conf.d/10-opensuse/mkosi.build.chroot index 62b329998d..5bc78aee3b 100755 --- a/mkosi.images/system/mkosi.conf.d/10-opensuse/mkosi.build.chroot +++ b/mkosi.images/system/mkosi.conf.d/10-opensuse/mkosi.build.chroot @@ -49,6 +49,7 @@ build() { --define "__os_install_post /usr/lib/rpm/brp-suse %{nil}" \ --define "__elf_exclude_path ^/usr/lib/systemd/tests/unit-tests/.*$" \ --define "__script_requires %{nil}" \ + --noclean \ "$@" \ "pkg/$ID/systemd.spec" } |