]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
mkosi: Make sure tmp.mount is not messed with on Debian/Ubuntu
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Sun, 5 May 2024 13:03:37 +0000 (15:03 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Mon, 6 May 2024 08:56:45 +0000 (10:56 +0200)
We want /tmp to be a tmpfs so let's hack the debian packaging to
make sure that's the case until the debian packaging is fixed to
make /tmp a tmpfs for UPSTREAM=1 builds.

mkosi.images/system/mkosi.conf.d/10-debian-ubuntu/mkosi.build.chroot

index e8921c2efed568aebb11da21f3e90c0a628d361d..52a23a53b590524d0657c23a1985ad7a57eab054 100755 (executable)
@@ -40,6 +40,10 @@ EOF
 cat debian/changelog >>debian/changelog.new
 mv debian/changelog.new debian/changelog
 
+# FIXME: Remove after tmp.mount is kept intact in the debian packaging for UPSTREAM=1 builds.
+sed --in-place '/tmp.mount/d' debian/rules
+sed --in-place '/tmp.mount/d' debian/not-installed
+
 build() {
     DEB_BUILD_OPTIONS=$(awk '$1=$1' <<<"\
         $( ((WITH_TESTS)) || echo nocheck) \