]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: fix TEST-24-CRYPTSETUP on SUSE
authorFranck Bui <fbui@suse.com>
Tue, 2 Jul 2024 08:33:29 +0000 (10:33 +0200)
committerFranck Bui <fbui@suse.com>
Tue, 2 Jul 2024 17:05:07 +0000 (19:05 +0200)
/etc/systemd/journald.conf.d drop-in dir already exists on SUSE.

test/TEST-24-CRYPTSETUP/test.sh

index a7e118c4f0dbae82bdae62c9c0de78274712e620..a275cca302c82cbac12af83bc4b97a397a1c396f 100755 (executable)
@@ -198,7 +198,7 @@ EOF
 
     # Forward journal messages to the console, so we have something to investigate even if we fail to mount
     # the encrypted /var
-    mkdir "$initdir/etc/systemd/journald.conf.d/"
+    mkdir -p "$initdir/etc/systemd/journald.conf.d/"
     echo -ne "[Journal]\nForwardToConsole=yes\n" >"$initdir/etc/systemd/journald.conf.d/99-forward.conf"
 
     # If $INITRD wasn't provided explicitly, generate a custom one with dm-crypt