From a4cbcfbbd04b9f493989a6ccb48d7590105246d6 Mon Sep 17 00:00:00 2001 From: Domenico Panella Date: Mon, 6 Jul 2020 12:27:07 +0200 Subject: [PATCH] gummiboot : patched to permit kernel cmdline parameter passing. --- srcpkgs/gummiboot/patches/stub.patch | 12 ++++++++++++ srcpkgs/gummiboot/template | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/gummiboot/patches/stub.patch diff --git a/srcpkgs/gummiboot/patches/stub.patch b/srcpkgs/gummiboot/patches/stub.patch new file mode 100644 index 00000000000..a986190c1e2 --- /dev/null +++ b/srcpkgs/gummiboot/patches/stub.patch @@ -0,0 +1,12 @@ +--- src/efi/stub.c 2015-03-12 00:50:35.000000000 +0100 ++++ src/efi/stub.c 2020-07-06 12:32:55.985327487 +0200 +@@ -83,7 +83,7 @@ + cmdline_len = szs[0]; + + /* if we are not in secure boot mode, accept a custom command line and replace the built-in one */ +- if (!secure && loaded_image->LoadOptionsSize > 0) { ++ if ((!secure || cmdline_len == 0) && loaded_image->LoadOptionsSize > 0 && *(CHAR16 *)loaded_image->LoadOptions > 0x1F) { + CHAR16 *options; + CHAR8 *line; + UINTN i; + diff --git a/srcpkgs/gummiboot/template b/srcpkgs/gummiboot/template index 0fa29b966b2..80e2ec17e86 100644 --- a/srcpkgs/gummiboot/template +++ b/srcpkgs/gummiboot/template @@ -1,7 +1,7 @@ # Template file for 'gummiboot' pkgname=gummiboot version=48.1 -revision=4 +revision=5 archs="i686* x86_64* aarch64*" build_style=gnu-configure conf_files="/etc/default/gummiboot"