From: ericonr <ericonr@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] gummiboot: add configuration file.
Date: Tue, 21 Jul 2020 05:59:27 +0200 [thread overview]
Message-ID: <20200721035927.-lIbx6Ao17ZvO8an4VoPxL8yiYrfWggGya1FgvocohE@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-23671@inbox.vuxu.org>
[-- Attachment #1: Type: text/plain, Size: 467 bytes --]
There is an updated pull request by ericonr against master on the void-packages repository
https://github.com/ericonr/void-packages gummi
https://github.com/void-linux/void-packages/pull/23671
gummiboot: add configuration file.
This makes it possible to easily disable the gummiboot kernel hook.
Change hook permissions to 755 to allow them to be read by anyone.
@sgn
A patch file from https://github.com/void-linux/void-packages/pull/23671.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gummi-23671.patch --]
[-- Type: text/x-diff, Size: 2502 bytes --]
From a2d48d038c669d6ab0a1ce7325d38a565c159617 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C3=89rico=20Rolim?= <erico.erc@gmail.com>
Date: Mon, 20 Jul 2020 15:36:28 -0300
Subject: [PATCH] gummiboot: add configuration file.
This makes it possible to easily disable the gummiboot kernel hook.
Change hook permissions to 744 to allow them to be read by anyone.
---
srcpkgs/gummiboot/files/kernel.d/gummiboot.confd | 2 ++
srcpkgs/gummiboot/files/kernel.d/gummiboot.post-install | 6 ++++++
srcpkgs/gummiboot/template | 9 ++++++---
3 files changed, 14 insertions(+), 3 deletions(-)
create mode 100644 srcpkgs/gummiboot/files/kernel.d/gummiboot.confd
diff --git a/srcpkgs/gummiboot/files/kernel.d/gummiboot.confd b/srcpkgs/gummiboot/files/kernel.d/gummiboot.confd
new file mode 100644
index 00000000000..a878b673006
--- /dev/null
+++ b/srcpkgs/gummiboot/files/kernel.d/gummiboot.confd
@@ -0,0 +1,2 @@
+# uncomment this line to disable the gummiboot hook
+#GUMMIBOOT_DISABLE=1
diff --git a/srcpkgs/gummiboot/files/kernel.d/gummiboot.post-install b/srcpkgs/gummiboot/files/kernel.d/gummiboot.post-install
index b2bf190be5f..7f4d27e985d 100644
--- a/srcpkgs/gummiboot/files/kernel.d/gummiboot.post-install
+++ b/srcpkgs/gummiboot/files/kernel.d/gummiboot.post-install
@@ -7,6 +7,12 @@
PKGNAME="$1"
VERSION="$2"
+. "$ROOTDIR/etc/default/gummiboot"
+
+if [ "$GUMMIBOOT_DISABLE" ]; then
+ exit 0
+fi
+
boot=$ROOTDIR/boot
entries=$boot/loader/entries
name=void-$VERSION
diff --git a/srcpkgs/gummiboot/template b/srcpkgs/gummiboot/template
index d23620e6170..0fa29b966b2 100644
--- a/srcpkgs/gummiboot/template
+++ b/srcpkgs/gummiboot/template
@@ -1,9 +1,10 @@
# Template file for 'gummiboot'
pkgname=gummiboot
version=48.1
-revision=3
+revision=4
archs="i686* x86_64* aarch64*"
build_style=gnu-configure
+conf_files="/etc/default/gummiboot"
hostmakedepends="automake pkg-config libxslt docbook-xsl"
makedepends="gnu-efi-libs liblzma-devel libblkid-devel"
short_desc="Simple UEFI Boot Manager"
@@ -26,8 +27,10 @@ pre_configure() {
}
post_install() {
- vinstall ${FILESDIR}/kernel.d/gummiboot.post-install 750 \
+ vinstall ${FILESDIR}/kernel.d/gummiboot.post-install 744 \
etc/kernel.d/post-install 50-gummiboot
- vinstall ${FILESDIR}/kernel.d/gummiboot.post-remove 750 \
+ vinstall ${FILESDIR}/kernel.d/gummiboot.post-remove 744 \
etc/kernel.d/post-remove 50-gummiboot
+ vinstall ${FILESDIR}/kernel.d/gummiboot.confd 644 \
+ etc/default gummiboot
}
next prev parent reply other threads:[~2020-07-21 3:59 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-20 18:41 [PR PATCH] " ericonr
2020-07-20 18:46 ` [PR PATCH] [Updated] " ericonr
2020-07-21 0:24 ` [PR REVIEW] " sgn
2020-07-21 2:41 ` [PR PATCH] [Updated] " ericonr
2020-07-21 2:41 ` [PR REVIEW] " ericonr
2020-07-21 3:59 ` ericonr [this message]
2020-07-21 14:12 ` [PR PATCH] [Merged]: " sgn
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=20200721035927.-lIbx6Ao17ZvO8an4VoPxL8yiYrfWggGya1FgvocohE@z \
--to=ericonr@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).