diff --git a/mkosi.postinst.chroot b/mkosi.postinst.chroot index 46868020f6..7f2666e0a4 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