Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] gummiboot: add configuration file.
@ 2020-07-20 18:41 ericonr
  2020-07-20 18:46 ` [PR PATCH] [Updated] " ericonr
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: ericonr @ 2020-07-20 18:41 UTC (permalink / raw)
  To: ml

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

There is a new 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: 2463 bytes --]

From 78a1864a0e6064c60cd5541b4fa5a8dd16549368 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 755 to allow them to be read by anyone.
---
 srcpkgs/gummiboot/files/kernel.d/gummiboot.confd        | 2 ++
 srcpkgs/gummiboot/files/kernel.d/gummiboot.post-install | 4 ++++
 srcpkgs/gummiboot/template                              | 9 ++++++---
 3 files changed, 12 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..30034be9374 100644
--- a/srcpkgs/gummiboot/files/kernel.d/gummiboot.post-install
+++ b/srcpkgs/gummiboot/files/kernel.d/gummiboot.post-install
@@ -7,6 +7,10 @@
 PKGNAME="$1"
 VERSION="$2"
 
+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..452fa93904f 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 755 \
 		etc/kernel.d/post-install 50-gummiboot
-	vinstall ${FILESDIR}/kernel.d/gummiboot.post-remove 750 \
+	vinstall ${FILESDIR}/kernel.d/gummiboot.post-remove 755 \
 		etc/kernel.d/post-remove 50-gummiboot
+	vinstall ${FILESDIRJ}/kernel.d/gummiboot.confd 644 \
+		etc/default/gummiboot
 }

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2020-07-21 14:12 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-20 18:41 [PR PATCH] gummiboot: add configuration file 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 ` [PR PATCH] [Updated] " ericonr
2020-07-21 14:12 ` [PR PATCH] [Merged]: " sgn

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).