Skip to content

grub: adjust BOOT_IMAGE arg for PCR 9 predictions - #343

Merged
bcressey merged 1 commit into
bottlerocket-os:developfrom
bcressey:grub-boot-image
Jan 7, 2026
Merged

grub: adjust BOOT_IMAGE arg for PCR 9 predictions#343
bcressey merged 1 commit into
bottlerocket-os:developfrom
bcressey:grub-boot-image

Conversation

@bcressey

Copy link
Copy Markdown
Contributor

Issue number:
Related: bottlerocket-os/twoliter#625

Description of changes:
Patch GRUB to replace the first argument on the kernel command line from the default:

  BOOT_IMAGE=(hdX,gptY)/vmlinuz

With a predictable value that doesn't depend on the boot device:

  BOOT_IMAGE=/vmlinuz

Testing done:
Verified that variants still boot, and that the kernel command line has the expected constant value:

SYSTEMD_CGROUP_ENABLE_LEGACY_FORCE=1 SYSTEMD_DEFAULT_MOUNT_RATE_LIMIT_BURST=25 BOOT_IMAGE=/vmlinuz console=tty1

Terms of contribution:

By submitting this pull request, I agree that this contribution is dual-licensed under the terms of both the Apache License, version 2.0, and the MIT license.

Patch GRUB to replace the first argument on the kernel command line
from the default:
  BOOT_IMAGE=(hdX,gptY)/vmlinuz

With a predictable value that doesn't depend on the boot device:
  BOOT_IMAGE=/vmlinuz

Signed-off-by: Ben Cressey <bcressey@amazon.com>
@bcressey
bcressey requested review from jpculp and yeazelm December 19, 2025 21:45
@bcressey
bcressey merged commit 75547da into bottlerocket-os:develop Jan 7, 2026
3 of 4 checks passed
@bcressey
bcressey deleted the grub-boot-image branch January 7, 2026 16:56
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