Skip to content

build: set dracut log levels for efficiency#1349

Merged
RoyalOughtness merged 2 commits intosecureblue:livefrom
HastD:dracut-loglevels
Sep 17, 2025
Merged

build: set dracut log levels for efficiency#1349
RoyalOughtness merged 2 commits intosecureblue:livefrom
HastD:dracut-loglevels

Conversation

@HastD
Copy link
Copy Markdown
Collaborator

@HastD HastD commented Sep 17, 2025

Dracut is configured by default to set sysloglvl=5, which results in a large amount of debug info being sent to the system journal during the build process. This is also implemented inefficiently in shell script, and has a major performance impact. Since we don't care about system journal output at all during the build process, we can just disable all logging to everywhere except stderr using a temporary dracut conf file.

This saves about 90 seconds in the initramfs generation step in each image build.

Dracut is configured by default to set `sysloglvl=5`, which results in a
large amount of debug info being sent to the system journal during the
build process. This is also implemented inefficiently in shell script,
and has a major performance impact. Since we don't care about system
journal output at all during the build process, we can just disable all
logging to everywhere except stderr using a temporary dracut conf file.

This saves about 90 seconds in the initramfs generation step in each
image build.

Signed-off-by: Daniel Hast <[email protected]>
@RoyalOughtness RoyalOughtness merged commit f292d36 into secureblue:live Sep 17, 2025
17 checks passed
@HastD HastD deleted the dracut-loglevels branch September 17, 2025 16:32
RoyalOughtness pushed a commit that referenced this pull request Sep 18, 2025
Dracut is configured by default to set `sysloglvl=5`, which results in a
large amount of debug info being sent to the system journal during the
build process. This is also implemented inefficiently in shell script,
and has a major performance impact. Since we don't care about system
journal output at all during the build process, we can just disable all
logging to everywhere except stderr using a temporary dracut conf file.

This saves about 90 seconds in the initramfs generation step in each
image build.

Signed-off-by: Daniel Hast <[email protected]>
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.

3 participants