Skip to content

dracut: Reduce size with wrappers#108

Merged
pothos merged 1 commit intoflatcar-masterfrom
kai/wrappers
Aug 13, 2025
Merged

dracut: Reduce size with wrappers#108
pothos merged 1 commit intoflatcar-masterfrom
kai/wrappers

Conversation

@pothos
Copy link
Copy Markdown
Member

@pothos pothos commented Aug 12, 2025

The xfs repair binaries are large and the user might need them manually
for the rootfs but at that point we can load them from /usr, too,
through a wrapper script. They are not called automatically (fsck.xfs
does not exist because the journal is enough for regular recovery).

How to use

Testing done

Ran the wrappers and checked that fsck is not done automatically for xfs.

pothos added a commit to flatcar/scripts that referenced this pull request Aug 12, 2025
This pulls in flatcar/bootengine#108

Signed-off-by: Kai Lueke <kailuke@microsoft.com>
pothos added a commit to flatcar/scripts that referenced this pull request Aug 12, 2025
This pulls in flatcar/bootengine#108

Signed-off-by: Kai Lueke <kailuke@microsoft.com>
pothos added a commit to flatcar/scripts that referenced this pull request Aug 12, 2025
This pulls in flatcar/bootengine#108

Signed-off-by: Kai Lueke <kailuke@microsoft.com>
The xfs repair binaries are large and the user might need them manually
for the rootfs but at that point we can load them from /usr, too,
through a wrapper script. They are not called automatically (fsck.xfs
does not exist because the journal is enough for regular recovery).

Signed-off-by: Kai Lueke <kailuke@microsoft.com>
@pothos pothos marked this pull request as ready for review August 12, 2025 19:11
@pothos pothos requested a review from a team as a code owner August 12, 2025 19:11
@pothos
Copy link
Copy Markdown
Member Author

pothos commented Aug 12, 2025

The tpm2 binary is not created as wrapper because it seems something copies the real binary again after the dracut Ignition module ran? We need to check this in a follow up.

Copy link
Copy Markdown
Contributor

@chewi chewi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! As you know, I have a plan, but this is a solid win in the meantime.

For tpm2, maybe this whole wrapper setup could move to the debloat module.

@pothos pothos merged commit 31ba296 into flatcar-master Aug 13, 2025
1 check passed
@pothos pothos deleted the kai/wrappers branch August 13, 2025 09:51
pothos added a commit to flatcar/scripts that referenced this pull request Aug 13, 2025
This pulls in flatcar/bootengine#108

Signed-off-by: Kai Lueke <kailuke@microsoft.com>
@pothos
Copy link
Copy Markdown
Member Author

pothos commented Aug 13, 2025

For tpm2, maybe this whole wrapper setup could move to the debloat module.

I tried that in this PR first but something still ended up placing the binary on top.

@ader1990
Copy link
Copy Markdown
Contributor

For tpm2, maybe this whole wrapper setup could move to the debloat module.

I tried that in this PR first but something still ended up placing the binary on top.

probably dracut code?

@chewi
Copy link
Copy Markdown
Contributor

chewi commented Aug 13, 2025

It might be Clevis, but I haven't checked.

pothos added a commit to flatcar/scripts that referenced this pull request Aug 13, 2025
This pulls in flatcar/bootengine#108

Signed-off-by: Kai Lueke <kailuke@microsoft.com>
pothos added a commit to flatcar/scripts that referenced this pull request Aug 13, 2025
This pulls in flatcar/bootengine#108

Signed-off-by: Kai Lueke <kailuke@microsoft.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.

3 participants