From: Daan De Meyer Date: Fri, 5 Jul 2024 09:24:27 +0000 (+0200) Subject: mkosi: Don't fail if /var/log/journal does not exist X-Git-Tag: v257-rc1~926^2~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=877842ed521c5cdf5dd0b50127b51466959a606e;p=thirdparty%2Fsystemd.git mkosi: Don't fail if /var/log/journal does not exist --- 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