-
Notifications
You must be signed in to change notification settings - Fork 117
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
hostapp-update-hooks: fix updating grub on secured systems #3565
Conversation
Change-type: patch Signed-off-by: Joseph Kogut <[email protected]>
Website deployed to CF Pages, 👀 preview link https://a90c05af.balena-os.pages.dev |
@@ -91,7 +92,7 @@ grub_luks_cfg=$(find -L $BALENA_BOOT_MOUNTPOINT -name grub-luks.cfg) | |||
grub_env=$(find -L $BALENA_BOOT_MOUNTPOINT -name grubenv) | |||
|
|||
if [ -n "$grub_luks_cfg" ]; then | |||
if [ "$type" = "crypt" ]; then | |||
if [ "$secureboot" = "true" ]; then |
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.
nitpick: keep the format consistent ${secureboot}
.
@@ -75,7 +76,7 @@ else | |||
fi | |||
|
|||
EFI_BINARY_SECUREBOOT="${EFI_BINARY}.secureboot" | |||
if [ "${type}" = "crypt" ]; then | |||
if [ "${secureboot}" = "true" ]; then |
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.
nitpick: it's not really checking for secure boot though, is it? It's just checking whether the partitions are encrypted. I went for enc_part
or similar in my PR.
Pull request was closed
Change-type: patch
Contributor checklist
Change-type
present on at least one commitSigned-off-by
is presentReviewer Guidelines