Skip to content

ephemeral: Fix forcing volatile storage for journald - #317

Open
rmsc wants to merge 1 commit into
bootc-dev:mainfrom
rmsc:main
Open

ephemeral: Fix forcing volatile storage for journald#317
rmsc wants to merge 1 commit into
bootc-dev:mainfrom
rmsc:main

Conversation

@rmsc

@rmsc rmsc commented Aug 15, 2026

Copy link
Copy Markdown

This replaces the 'systemd.journald.storage=volatile' kernel argument with 'systemd.mask=systemd.journal-flush.service', masking the service responsible for switching to persistent storage.

Commit a6fadf6 introduced the argument 'systemd.journald.storage=volatile' with the intent of keeping the journal in memory for performance. However, this is not supported by current systemd versions, and is simply ignored.

The systemd documentation points out that journald will always use volatile storage initially, and the switch to persistent storage is done automatically by the 'systemd-journal-flush.service' if so configured. Masking this service keeps storage volatile.

Closes: #316

This replaces the 'systemd.journald.storage=volatile' kernel
argument with 'systemd.mask=systemd.journal-flush.service', masking
the service responsible for switching to persistent storage.

Commit a6fadf6 introduced the
argument 'systemd.journald.storage=volatile' with the intent of
keeping the journal in memory for performance. However, this is
not supported by current systemd versions, and is simply ignored.

The systemd documentation points out that journald will always use
volatile storage initially, and the switch to persistent storage
is done automatically by the 'systemd-journal-flush.service' if so
configured. Masking this service keeps storage volatile.

Closes: bootc-dev#316

Signed-off-by: Renato Caldas <renato@silkmicro.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unknown kernel command line option "systemd.journald.storage"

1 participant