-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sys-boot/grub: Move to portage-stable, bump to 2.12, add Red Hat patches
We can now use Gentoo's upstream ebuild, save for a few small overrides in a separate env file. This bumps GRUB from 2.06 to 2.12, but with Red Hat's large patch set applied, which is needed for Secure Boot. The existing two Flatcar patches have been rebased. Gentoo's patches are discarded because they conflict and are not relevant to Flatcar. Signed-off-by: James Le Cuirot <[email protected]>
- Loading branch information
Showing
20 changed files
with
58,504 additions
and
299 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
- grub ([2.12](https://lists.gnu.org/archive/html/grub-devel/2023-12/msg00052.html)) |
32 changes: 18 additions & 14 deletions
32
sdk_container/src/third_party/coreos-overlay/coreos/config/env/sys-boot/grub
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,18 @@ | ||
PKG_INSTALL_MASK+=" /etc/grub.d/00_header | ||
/etc/grub.d/10_linux | ||
/etc/grub.d/30_os-prober | ||
/etc/grub.d/40_custom | ||
/etc/grub.d/README | ||
/lib64/grub/grub-mkconfig_lib | ||
/lib64/grub/update-grub_lib" | ||
INSTALL_MASK+=" /etc/grub.d/00_header | ||
/etc/grub.d/10_linux | ||
/etc/grub.d/30_os-prober | ||
/etc/grub.d/40_custom | ||
/etc/grub.d/README | ||
/lib64/grub/grub-mkconfig_lib | ||
/lib64/grub/update-grub_lib" | ||
# Gentoo's patches conflict with Red Hat's patches, and none of Gentoo's patches | ||
# affect Flatcar, so skip them all. | ||
PATCHES=() | ||
|
||
# Replace Gentoo's SBAT with Flatcar's. | ||
cros_post_src_install_sbat() { | ||
insinto /usr/share/grub | ||
newins - sbat.csv <<-EOF | ||
sbat,1,SBAT Version,sbat,1,https://github.com/rhboot/shim/blob/main/SBAT.md | ||
grub,4,Free Software Foundation,grub,${PV},https://www.gnu.org/software/grub/ | ||
grub.flatcar,1,Flatcar,grub2,${PVR},https://github.com/flatcar/Flatcar | ||
EOF | ||
} | ||
|
||
# Flatcar does not use grub-install or grub-mkconfig. All the files under /etc | ||
# relate to grub-mkconfig. | ||
INSTALL_MASK+=" ${EPREFIX}/etc/ *grub-install* *mkconfig*" | ||
PKG_INSTALL_MASK+=" ${EPREFIX}/etc/ *grub-install* *mkconfig*" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.