Github messages for voidlinux
 help / color / mirror / Atom feed
From: pandom79 <pandom79@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [PR PATCH] gummiboot : patched to permit kernel cmdline parameter passing.
Date: Mon, 06 Jul 2020 12:34:32 +0200	[thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-23412@inbox.vuxu.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 514 bytes --]

There is a new pull request by pandom79 against master on the void-packages repository

https://github.com/pandom79/void-packages gummiboot
https://github.com/void-linux/void-packages/pull/23412

gummiboot : patched to permit kernel cmdline parameter passing.
The actual version doesn't work. See [here](https://github.com/systemd/systemd/blob/master/src/boot/efi/stub.c) at 66 line. Tested on my machine (Dell xps 9380)


A patch file from https://github.com/void-linux/void-packages/pull/23412.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gummiboot-23412.patch --]
[-- Type: text/x-diff, Size: 1165 bytes --]

From 771c6cfe7e75c3088f3b7da28ed2fcde17df176c Mon Sep 17 00:00:00 2001
From: Domenico Panella <pandom79@gmail.com>
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 ++++++++++++
 1 file changed, 12 insertions(+)
 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..ee1ab58d74c
--- /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;
+

             reply	other threads:[~2020-07-06 10:34 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-06 10:34 pandom79 [this message]
2020-07-06 13:10 ` ericonr
2020-07-06 13:17 ` ericonr
2020-07-21 14:36 ` ahesford
2020-07-21 14:37 ` [PR PATCH] [Closed]: " ahesford

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-23412@inbox.vuxu.org \
    --to=pandom79@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).