]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
mkosi: Don't fail if /var/log/journal does not exist
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 5 Jul 2024 09:24:27 +0000 (11:24 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 10 Jul 2024 16:52:29 +0000 (18:52 +0200)
mkosi.postinst.chroot

index 46868020f6a92c8a59710e40db77c923004899b2..7f2666e0a43e8ee4f63df8851f737834be3cbceb 100755 (executable)
@@ -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