-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update the mkinitcpio post hook to only sign the kernel/UKI which is currently being built instead of all the files in the sbctl database #285
Conversation
…currently being built instead of all the files in the sbctl database
Thanks! |
@Foxboron any plan to release this fix? |
@TiagodePAlves Can probably try and do a release one of the up comming weekends. |
echo "Signing EFI binaries..." | ||
/usr/bin/sbctl sign-all -g | ||
|
||
KERENEL_FILE="$1" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo in the var name?
fi | ||
|
||
echo "Signing $IMAGE_FILE" | ||
sbctl sign -s "$IMAGE_FILE" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we really need -s
here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, this has already been merged, but I think the -s
is right here. Initramfs files should always be saved to the database and resigned as soon as possible, when necessary.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
problem is they're never removed from the sbctl "database", so if you remove the uki, now the sbctl database is out-of-sync
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In that case, sbctl will just display an error, but the exit code will still be zero. So you can just remove from the database file manually when you see the message. That's why the current behavior is ok IMHO.
See #284 for details on the problem.
This PR updates the mkinitcpio post hook to only sign the kernel/UKI which is currently being built instead of all the files in the sbctl database.
References:
Fixes #284