From 219b5823bd5994a1dd95ff3b24f11472fb2c5a29 Mon Sep 17 00:00:00 2001 From: Joseph Marrero Date: Thu, 22 Feb 2024 13:17:41 -0500 Subject: [PATCH] Release 0.2.18 backport patch to support GRUB console.cfg Resolves: RHEL-26439 --- .gitignore | 2 ++ ...urce-in-a-console.cfg-file-if-exists.patch | 31 +++++++++++++++++++ rust-bootupd.spec | 9 +++++- sources | 4 +-- 4 files changed, 43 insertions(+), 3 deletions(-) create mode 100644 0001-grub2-source-in-a-console.cfg-file-if-exists.patch diff --git a/.gitignore b/.gitignore index 2bbc0c2..60802cc 100644 --- a/.gitignore +++ b/.gitignore @@ -25,3 +25,5 @@ /bootupd-0.2.16-vendor.tar.zstd /bootupd-0.2.17.crate /bootupd-0.2.17-vendor.tar.zstd +/bootupd-0.2.18.crate +/bootupd-0.2.18-vendor.tar.zstd diff --git a/0001-grub2-source-in-a-console.cfg-file-if-exists.patch b/0001-grub2-source-in-a-console.cfg-file-if-exists.patch new file mode 100644 index 0000000..3d6681b --- /dev/null +++ b/0001-grub2-source-in-a-console.cfg-file-if-exists.patch @@ -0,0 +1,31 @@ +From 38b971647d126f9c51545553d2a55cc77ff01d08 Mon Sep 17 00:00:00 2001 +From: Dusty Mabe +Date: Mon, 19 Feb 2024 14:33:17 -0500 +Subject: [PATCH] grub2: source in a console.cfg file if exists + +This will allow users or distro builders place console settings +here that will get picked up on boot. This was discussed as part +of https://github.com/coreos/fedora-coreos-tracker/issues/1671 +--- + src/grub2/grub-static-pre.cfg | 5 +++++ + 1 file changed, 5 insertions(+) + +diff --git a/src/grub2/grub-static-pre.cfg b/src/grub2/grub-static-pre.cfg +index 7784834..9717cfb 100644 +--- a/src/grub2/grub-static-pre.cfg ++++ b/src/grub2/grub-static-pre.cfg +@@ -38,6 +38,11 @@ elif [ -s $prefix/grubenv ]; then + load_env + fi + ++if [ -f $prefix/console.cfg ]; then ++ # Source in any GRUB console settings if provided by the user/platform ++ source $prefix/console.cfg ++fi ++ + if [ x"${feature_menuentry_id}" = xy ]; then + menuentry_id_option="--id" + else +-- +2.43.0 + diff --git a/rust-bootupd.spec b/rust-bootupd.spec index 0d4bc2f..69f0028 100644 --- a/rust-bootupd.spec +++ b/rust-bootupd.spec @@ -4,7 +4,7 @@ %global crate bootupd Name: rust-%{crate} -Version: 0.2.17 +Version: 0.2.18 Release: 1%{?dist} Summary: Bootloader updater @@ -13,6 +13,8 @@ URL: https://crates.io/crates/bootupd Source0: https://github.com/coreos/bootupd/releases/download/v%{version}/bootupd-%{version}.crate Source1: https://github.com/coreos/%{crate}/releases/download/v%{version}/%{crate}-%{version}-vendor.tar.zstd +Patch0: 0001-grub2-source-in-a-console.cfg-file-if-exists.patch + BuildRequires: make BuildRequires: openssl-devel %if 0%{?rhel} && !0%{?eln} @@ -70,6 +72,11 @@ make install-grub-static DESTDIR=%{?buildroot} INSTALL="%{__install} -p" %systemd_postun bootupd.service bootupd.socket %changelog +* Thu Feb 22 2024 Joseph Marrero - 0.2.18-1 +- https://github.com/coreos/bootupd/releases/tag/v0.2.18 + backport patch to support GRUB console.cfg + Resolves: RHEL-26439 + * Tue Dec 19 2023 Joseph Marrero - 0.2.17-1 - https://github.com/coreos/bootupd/releases/tag/v0.2.17 Resolves: RHEL-14388 diff --git a/sources b/sources index 5559168..4166d14 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (bootupd-0.2.17.crate) = b99130fab8db52318a4bae9bba4b32b6193a4308c7341828b00b135dbf9736fbdcb11aa4769220d5b62a29c8f9da2ae4e89752753b6da5e096ee6d3140f096b5 -SHA512 (bootupd-0.2.17-vendor.tar.zstd) = 1e8d895d59457cb014bd4c375aeae8b35222371e6885bc367e5881408578c804c281a353c74bee1290aa800a3062a36e98dfaab311b38c83f5ae9e898f3d7579 +SHA512 (bootupd-0.2.18.crate) = 867579ca1978453c14761023abb3ab5fd6d5fffc721e1544d55d5b4e14d5ba374fcf5ed7a53b45d176c3853fb1c0dd715fbd6e7d3652e6ad24ee0de6376a634b +SHA512 (bootupd-0.2.18-vendor.tar.zstd) = c194054b14d8038dc06d4cfa7f4138a0b1a1b5f45aab09df402e55d3fe912fd91f43306dae44878edcfab03196acf3b4d656c66cb8aaa4638a6269b922d3dca7