Skip to content

dracut: install chmod into initramfs#563

Closed
louiszn wants to merge 1 commit into
latchset:masterfrom
louiszn:fix-dracut-install-chmod
Closed

dracut: install chmod into initramfs#563
louiszn wants to merge 1 commit into
latchset:masterfrom
louiszn:fix-dracut-install-chmod

Conversation

@louiszn

@louiszn louiszn commented Jun 29, 2026

Copy link
Copy Markdown

Summary

The dracut module installs clevis-password-unlocker and clevis-password-unlocker-prepare, both of which invoke chmod, but chmod is not installed into the initramfs.

This results in the following warning during early boot on systems where chmod is not otherwise present in the initramfs:

/bin/clevis-password-unlocker-prepare: line 25: chmod: command not found
/bin/clevis-password-unlocker: line 183: chmod: command not found

This change adds chmod to the list of binaries installed by module-setup.sh, ensuring it is available when these scripts execute.

Testing

Tested on Void Linux with dracut and a TPM2-bound LUKS root volume.

Before this change:

  • lsinitrd confirmed that chmod was not present in the initramfs.
  • The above warnings were printed during early boot.

After this change:

  • chmod is included in the initramfs.
  • The warnings disappear.
  • TPM2 auto-unlock continues to work correctly.

@louiszn louiszn closed this Jun 29, 2026
@louiszn

louiszn commented Jun 29, 2026

Copy link
Copy Markdown
Author

I found #561 after opening this PR and realized it addresses the same issues. I'll close this PR to keep the discussion in one place.

I independently reproduced the problems on Void Linux while packaging Clevis 23, and confirmed that these changes resolve both the missing chmod warning during early boot and the Meson configuration failure on non-systemd systems.

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.

1 participant