]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
mkosi: Make sure we create an image without /var/log/journal 32575/head
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 30 Apr 2024 09:41:02 +0000 (11:41 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 30 Apr 2024 09:41:02 +0000 (11:41 +0200)
This allows journald to create the directory itself with the right
chattr settings on first boot.

mkosi.images/system/mkosi.postinst.chroot

index 43978316fcdd94ba7f6552189e9bdbf235c53074..f2b0ba09c2d796e9725c4648864b31a02cde1704 100755 (executable)
@@ -68,3 +68,7 @@ rm -f /etc/resolv.conf
 for f in "$BUILDROOT"/usr/share/*.verity.sig; do
     jq --join-output '.rootHash' "$f" >"${f%.verity.sig}.roothash"
 done
+
+# We want /var/log/journal to be created on first boot so it can be created with the right chattr settings by
+# systemd-journald.
+rm -r "$BUILDROOT/var/log/journal"