Skip to content

Fix false negative of clevis detection in initramfs#2

Open
speed47 wants to merge 1 commit into
bryankemp:mainfrom
speed47:fixsigpipe
Open

Fix false negative of clevis detection in initramfs#2
speed47 wants to merge 1 commit into
bryankemp:mainfrom
speed47:fixsigpipe

Conversation

@speed47
Copy link
Copy Markdown

@speed47 speed47 commented Mar 22, 2026

Due to -o pipefail, on my system the script didn't properly report clevis as being present in the initramfs because lsinitramfs gets killed early due to grep -q clevis actually matching successfully. There are several ways to fix that, a single-line fix would have been to use sponge between lsinitramfs and grep, but it might not be installed everywhere. So, I opted for a slighly longer version, which is to disable -o pipefail just for this line. This fixed the behaviour on my system.

Thanks for this script!

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