From: voidlinux-github@inbox.vuxu.org
To: ml@inbox.vuxu.org
Subject: [PR PATCH] [RFC] linux-firmware: add initramfs triggers
Date: Fri, 07 Jun 2019 23:28:31 +0200 [thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-12272@inbox.vuxu.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 667 bytes --]
There is a new pull request by steinex against master on the void-packages repository
https://github.com/steinex/void-packages linux-firmware
https://github.com/void-linux/void-packages/pull/12272
[RFC] linux-firmware: add initramfs triggers
This adds triggers to re-generate initramfs for every sub-package of `linux-firmware`.
The downside of that is that most users have probably all sub-packages installed, thus re-generating initramfs 4 times in a row. However, since it's plausible to only have a subset of these installed, it's more correct to always re-generate.
A patch file from https://github.com/void-linux/void-packages/pull/12272.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-linux-firmware-12272.patch --]
[-- Type: application/text/x-diff, Size: 4480 bytes --]
From 45ce5cff7cbdc689fe46fb227bb794fa1253ba7e Mon Sep 17 00:00:00 2001
From: Frank Steinborn <steinex@nognu.de>
Date: Fri, 7 Jun 2019 22:14:27 +0200
Subject: [PATCH] linux-firmware: add initramfs triggers
---
srcpkgs/linux-firmware/linux-firmware-amd.INSTALL | 7 +++++++
srcpkgs/linux-firmware/linux-firmware-amd.REMOVE | 7 +++++++
srcpkgs/linux-firmware/linux-firmware-intel.INSTALL | 1 +
srcpkgs/linux-firmware/linux-firmware-intel.REMOVE | 1 +
srcpkgs/linux-firmware/linux-firmware-network.INSTALL | 1 +
srcpkgs/linux-firmware/linux-firmware-network.REMOVE | 1 +
srcpkgs/linux-firmware/linux-firmware-nvidia.INSTALL | 1 +
srcpkgs/linux-firmware/linux-firmware-nvidia.REMOVE | 1 +
srcpkgs/linux-firmware/template | 2 +-
9 files changed, 21 insertions(+), 1 deletion(-)
create mode 100644 srcpkgs/linux-firmware/linux-firmware-amd.INSTALL
create mode 100644 srcpkgs/linux-firmware/linux-firmware-amd.REMOVE
create mode 120000 srcpkgs/linux-firmware/linux-firmware-intel.INSTALL
create mode 120000 srcpkgs/linux-firmware/linux-firmware-intel.REMOVE
create mode 120000 srcpkgs/linux-firmware/linux-firmware-network.INSTALL
create mode 120000 srcpkgs/linux-firmware/linux-firmware-network.REMOVE
create mode 120000 srcpkgs/linux-firmware/linux-firmware-nvidia.INSTALL
create mode 120000 srcpkgs/linux-firmware/linux-firmware-nvidia.REMOVE
diff --git a/srcpkgs/linux-firmware/linux-firmware-amd.INSTALL b/srcpkgs/linux-firmware/linux-firmware-amd.INSTALL
new file mode 100644
index 00000000000..6b065bedb4a
--- /dev/null
+++ b/srcpkgs/linux-firmware/linux-firmware-amd.INSTALL
@@ -0,0 +1,7 @@
+# Regenerate initramfs.
+case ${ACTION} in
+post)
+ echo "Regenerating initramfs, please wait..."
+ dracut -f -q --regenerate-all
+ ;;
+esac
diff --git a/srcpkgs/linux-firmware/linux-firmware-amd.REMOVE b/srcpkgs/linux-firmware/linux-firmware-amd.REMOVE
new file mode 100644
index 00000000000..e4d494ca015
--- /dev/null
+++ b/srcpkgs/linux-firmware/linux-firmware-amd.REMOVE
@@ -0,0 +1,7 @@
+# Regenerate initramfs.
+case ${ACTION} in
+purge)
+ echo "Regenerating initramfs, please wait..."
+ dracut -f -q --regenerate-all
+ ;;
+esac
diff --git a/srcpkgs/linux-firmware/linux-firmware-intel.INSTALL b/srcpkgs/linux-firmware/linux-firmware-intel.INSTALL
new file mode 120000
index 00000000000..2495de61aa3
--- /dev/null
+++ b/srcpkgs/linux-firmware/linux-firmware-intel.INSTALL
@@ -0,0 +1 @@
+linux-firmware-amd.INSTALL
\ No newline at end of file
diff --git a/srcpkgs/linux-firmware/linux-firmware-intel.REMOVE b/srcpkgs/linux-firmware/linux-firmware-intel.REMOVE
new file mode 120000
index 00000000000..88d38152c46
--- /dev/null
+++ b/srcpkgs/linux-firmware/linux-firmware-intel.REMOVE
@@ -0,0 +1 @@
+linux-firmware-amd.REMOVE
\ No newline at end of file
diff --git a/srcpkgs/linux-firmware/linux-firmware-network.INSTALL b/srcpkgs/linux-firmware/linux-firmware-network.INSTALL
new file mode 120000
index 00000000000..2495de61aa3
--- /dev/null
+++ b/srcpkgs/linux-firmware/linux-firmware-network.INSTALL
@@ -0,0 +1 @@
+linux-firmware-amd.INSTALL
\ No newline at end of file
diff --git a/srcpkgs/linux-firmware/linux-firmware-network.REMOVE b/srcpkgs/linux-firmware/linux-firmware-network.REMOVE
new file mode 120000
index 00000000000..88d38152c46
--- /dev/null
+++ b/srcpkgs/linux-firmware/linux-firmware-network.REMOVE
@@ -0,0 +1 @@
+linux-firmware-amd.REMOVE
\ No newline at end of file
diff --git a/srcpkgs/linux-firmware/linux-firmware-nvidia.INSTALL b/srcpkgs/linux-firmware/linux-firmware-nvidia.INSTALL
new file mode 120000
index 00000000000..2495de61aa3
--- /dev/null
+++ b/srcpkgs/linux-firmware/linux-firmware-nvidia.INSTALL
@@ -0,0 +1 @@
+linux-firmware-amd.INSTALL
\ No newline at end of file
diff --git a/srcpkgs/linux-firmware/linux-firmware-nvidia.REMOVE b/srcpkgs/linux-firmware/linux-firmware-nvidia.REMOVE
new file mode 120000
index 00000000000..88d38152c46
--- /dev/null
+++ b/srcpkgs/linux-firmware/linux-firmware-nvidia.REMOVE
@@ -0,0 +1 @@
+linux-firmware-amd.REMOVE
\ No newline at end of file
diff --git a/srcpkgs/linux-firmware/template b/srcpkgs/linux-firmware/template
index 65cc75569cb..d2b5c59bc2c 100644
--- a/srcpkgs/linux-firmware/template
+++ b/srcpkgs/linux-firmware/template
@@ -1,7 +1,7 @@
# Template file for 'linux-firmware'
pkgname=linux-firmware
version=20190514
-revision=1
+revision=2
_githash=711d3297bac870af42088a467459a0634c1970ca
archs=noarch
wrksrc="${pkgname}-${_githash}"
next reply other threads:[~2019-06-07 21:28 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-06-07 21:28 voidlinux-github [this message]
2019-06-21 6:34 ` voidlinux-github
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-12272@inbox.vuxu.org \
--to=voidlinux-github@inbox.vuxu.org \
--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).