* [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
* Re: [PR PATCH] [Updated] gummiboot: add configuration file.
2020-07-20 18:41 [PR PATCH] gummiboot: add configuration file ericonr
@ 2020-07-20 18:46 ` ericonr
2020-07-21 0:24 ` [PR REVIEW] " sgn
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: ericonr @ 2020-07-20 18:46 UTC (permalink / raw)
To: ml
[-- 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: 2503 bytes --]
From b81d5818a1f4bed595f4e8911f2400bd835ce5d4 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 | 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..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
* Re: [PR REVIEW] gummiboot: add configuration file.
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 ` sgn
2020-07-21 2:41 ` [PR PATCH] [Updated] " ericonr
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: sgn @ 2020-07-21 0:24 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 222 bytes --]
New review comment by sgn on void-packages repository
https://github.com/void-linux/void-packages/pull/23671#discussion_r457764528
Comment:
I think it should be `744` instead. I.e. don't let unprivileged users touch it.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PR PATCH] [Updated] gummiboot: add configuration file.
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 ` ericonr
2020-07-21 2:41 ` [PR REVIEW] " ericonr
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: ericonr @ 2020-07-21 2:41 UTC (permalink / raw)
To: ml
[-- 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 28704cace800512921016614532f42d90fdc9c1b 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..78b54312145 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
}
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PR REVIEW] gummiboot: add configuration file.
2020-07-20 18:41 [PR PATCH] gummiboot: add configuration file ericonr
` (2 preceding siblings ...)
2020-07-21 2:41 ` [PR PATCH] [Updated] " ericonr
@ 2020-07-21 2:41 ` ericonr
2020-07-21 3:59 ` [PR PATCH] [Updated] " ericonr
2020-07-21 14:12 ` [PR PATCH] [Merged]: " sgn
5 siblings, 0 replies; 7+ messages in thread
From: ericonr @ 2020-07-21 2:41 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 152 bytes --]
New review comment by ericonr on void-packages repository
https://github.com/void-linux/void-packages/pull/23671#discussion_r457802348
Comment:
Fixed
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PR PATCH] [Updated] gummiboot: add configuration file.
2020-07-20 18:41 [PR PATCH] gummiboot: add configuration file ericonr
` (3 preceding siblings ...)
2020-07-21 2:41 ` [PR REVIEW] " ericonr
@ 2020-07-21 3:59 ` ericonr
2020-07-21 14:12 ` [PR PATCH] [Merged]: " sgn
5 siblings, 0 replies; 7+ messages in thread
From: ericonr @ 2020-07-21 3:59 UTC (permalink / raw)
To: ml
[-- 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
}
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PR PATCH] [Merged]: gummiboot: add configuration file.
2020-07-20 18:41 [PR PATCH] gummiboot: add configuration file ericonr
` (4 preceding siblings ...)
2020-07-21 3:59 ` [PR PATCH] [Updated] " ericonr
@ 2020-07-21 14:12 ` sgn
5 siblings, 0 replies; 7+ messages in thread
From: sgn @ 2020-07-21 14:12 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 313 bytes --]
There's a merged pull request on the void-packages repository
gummiboot: add configuration file.
https://github.com/void-linux/void-packages/pull/23671
Description:
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
^ 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).