mirror of
https://github.com/systemd/systemd
synced 2024-09-06 16:56:43 +00:00
test: use a dropin for the journald snippet
The original way of appending to /etc/systemd/journald.conf doesn't work anymore, since we no longer ship the default configs in /etc/.
This commit is contained in:
parent
887b2529eb
commit
1d556e9e2a
|
@ -189,9 +189,10 @@ test_create_image() {
|
|||
/dev/mapper/$DM_NAME /var ext4 defaults 0 1
|
||||
EOF
|
||||
|
||||
# Forward journal messages to the console, so we have something
|
||||
# to investigate even if we fail to mount the encrypted /var
|
||||
echo ForwardToConsole=yes >>"$initdir/etc/systemd/journald.conf"
|
||||
# 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/"
|
||||
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
|
||||
# support
|
||||
|
|
Loading…
Reference in a new issue