From 877842ed521c5cdf5dd0b50127b51466959a606e Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Fri, 5 Jul 2024 11:24:27 +0200 Subject: [PATCH] mkosi: Don't fail if /var/log/journal does not exist --- mkosi.postinst.chroot | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mkosi.postinst.chroot b/mkosi.postinst.chroot index 46868020f6a..7f2666e0a43 100755 --- a/mkosi.postinst.chroot +++ b/mkosi.postinst.chroot @@ -32,7 +32,7 @@ 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" +rm -rf "$BUILDROOT/var/log/journal" rm -f /etc/nsswitch.conf cp "$SRCDIR/factory/etc/nsswitch.conf" /etc/nsswitch.conf -- 2.47.3