Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] dracut: update to 103, switch to dracut-ng
@ 2024-07-19 20:52 classabbyamp
  2024-07-22  0:12 ` LaszloGombos
                   ` (48 more replies)
  0 siblings, 49 replies; 50+ messages in thread
From: classabbyamp @ 2024-07-19 20:52 UTC (permalink / raw)
  To: ml

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

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

https://github.com/classabbyamp/void-packages star-dracut-the-next-generation
https://github.com/void-linux/void-packages/pull/51344

dracut: update to 103, switch to dracut-ng
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **briefly**

@zdykstra


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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-star-dracut-the-next-generation-51344.patch --]
[-- Type: text/x-diff, Size: 13874 bytes --]

From eaa2710be3397441243eb9f5d3204f9c620eea77 Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Fri, 19 Jul 2024 16:50:28 -0400
Subject: [PATCH] dracut: update to 103, switch to dracut-ng

---
 ...408c8644a0add1907b0593eb83f90d6247b1.patch | 45 -------------------
 srcpkgs/dracut/patches/amd-ucode-readme.patch | 26 -----------
 srcpkgs/dracut/patches/fix-fsck.patch         | 27 -----------
 srcpkgs/dracut/patches/force_poweroff.patch   | 30 -------------
 .../dracut/patches/isoscan-udev-trigger.patch | 25 -----------
 srcpkgs/dracut/patches/network.patch          | 37 ---------------
 srcpkgs/dracut/patches/silence-setfont.patch  | 19 --------
 srcpkgs/dracut/template                       | 19 ++++----
 8 files changed, 9 insertions(+), 219 deletions(-)
 delete mode 100644 srcpkgs/dracut/patches/6c80408c8644a0add1907b0593eb83f90d6247b1.patch
 delete mode 100644 srcpkgs/dracut/patches/amd-ucode-readme.patch
 delete mode 100644 srcpkgs/dracut/patches/fix-fsck.patch
 delete mode 100644 srcpkgs/dracut/patches/force_poweroff.patch
 delete mode 100644 srcpkgs/dracut/patches/isoscan-udev-trigger.patch
 delete mode 100644 srcpkgs/dracut/patches/network.patch
 delete mode 100644 srcpkgs/dracut/patches/silence-setfont.patch

diff --git a/srcpkgs/dracut/patches/6c80408c8644a0add1907b0593eb83f90d6247b1.patch b/srcpkgs/dracut/patches/6c80408c8644a0add1907b0593eb83f90d6247b1.patch
deleted file mode 100644
index 6d3295c8e26c1a..00000000000000
--- a/srcpkgs/dracut/patches/6c80408c8644a0add1907b0593eb83f90d6247b1.patch
+++ /dev/null
@@ -1,45 +0,0 @@
-From 6c80408c8644a0add1907b0593eb83f90d6247b1 Mon Sep 17 00:00:00 2001
-From: Antonio Alvarez Feijoo <antonio.feijoo@suse.com>
-Date: Mon, 14 Aug 2023 12:28:11 +0200
-Subject: [PATCH] fix(dracut.sh): remove microcode check based on
- CONFIG_MICROCODE_[AMD|INTEL]
-
-`CONFIG_MICROCODE_AMD` and `CONFIG_MICROCODE_INTEL` are hidden since
-https://lore.kernel.org/all/20230810160805.081212701@linutronix.de/, therefore
-this check is wrong and early microcode is always disabled.
----
- dracut.sh | 11 ++++-------
- 1 file changed, 4 insertions(+), 7 deletions(-)
-
-diff --git a/dracut.sh b/dracut.sh
-index e0abdb3b0..3b292910f 100755
---- a/dracut.sh
-+++ b/dracut.sh
-@@ -1561,23 +1561,20 @@ fi
- 
- if [[ $early_microcode == yes ]]; then
-     if [[ $hostonly ]]; then
--        if [[ $(get_cpu_vendor) == "AMD" ]]; then
--            check_kernel_config CONFIG_MICROCODE_AMD || unset early_microcode
--        elif [[ $(get_cpu_vendor) == "Intel" ]]; then
--            check_kernel_config CONFIG_MICROCODE_INTEL || unset early_microcode
-+        if [[ $(get_cpu_vendor) == "AMD" || $(get_cpu_vendor) == "Intel" ]]; then
-+            check_kernel_config CONFIG_MICROCODE || unset early_microcode
-         else
-             unset early_microcode
-         fi
-     else
--        ! check_kernel_config CONFIG_MICROCODE_AMD \
--            && ! check_kernel_config CONFIG_MICROCODE_INTEL \
-+        ! check_kernel_config CONFIG_MICROCODE \
-             && unset early_microcode
-     fi
-     # Do not complain on non-x86 architectures as it makes no sense
-     case "${DRACUT_ARCH:-$(uname -m)}" in
-         x86_64 | i?86)
-             [[ $early_microcode != yes ]] \
--                && dwarn "Disabling early microcode, because kernel does not support it. CONFIG_MICROCODE_[AMD|INTEL]!=y"
-+                && dwarn "Disabling early microcode, because kernel does not support it. CONFIG_MICROCODE!=y"
-             ;;
-         *) ;;
-     esac
diff --git a/srcpkgs/dracut/patches/amd-ucode-readme.patch b/srcpkgs/dracut/patches/amd-ucode-readme.patch
deleted file mode 100644
index a2ea1288d230b0..00000000000000
--- a/srcpkgs/dracut/patches/amd-ucode-readme.patch
+++ /dev/null
@@ -1,26 +0,0 @@
-From c1a69b81f6ebd62a40054be2375cb77c040694aa Mon Sep 17 00:00:00 2001
-From: Antonio Alvarez Feijoo <antonio.feijoo@suse.com>
-Date: Mon, 30 Oct 2023 14:56:39 +0100
-Subject: [PATCH] fix(dracut.sh): skip README for AMD microcode generation
-
-This file was added in https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/commit/amd-ucode/README?id=89ec6198f13d1007563ff87aae5de209e993be07
-and it should be skipped.
-
-Fixes #2541
----
- dracut.sh | 2 ++
- 1 file changed, 2 insertions(+)
-
-diff --git a/dracut.sh b/dracut.sh
-index 3b292910f..bd730cbe9 100755
---- a/dracut.sh
-+++ b/dracut.sh
-@@ -2154,6 +2154,8 @@ if [[ $early_microcode == yes ]]; then
-                 done
-                 for i in $_fwdir/$_fw/$_src; do
-                     [[ -e $i ]] || continue
-+                    # skip README{.xz,.zst,...}
-+                    str_starts "$i" "$_fwdir/$_fw/README" && continue
-                     # skip gpg files
-                     str_ends "$i" ".asc" && continue
-                     cat "$i" >> "$_dest_dir/${ucode_dest[$idx]}"
diff --git a/srcpkgs/dracut/patches/fix-fsck.patch b/srcpkgs/dracut/patches/fix-fsck.patch
deleted file mode 100644
index 97c72d05e5543c..00000000000000
--- a/srcpkgs/dracut/patches/fix-fsck.patch
+++ /dev/null
@@ -1,27 +0,0 @@
-https://github.com/dracutdevs/dracut/pull/2262
-
-From 26990cb90bf0f516ccbd56583000d6d02ab18acd Mon Sep 17 00:00:00 2001
-From: Laszlo Gombos <laszlo.gombos@gmail.com>
-Date: Sat, 4 Mar 2023 23:28:17 +0000
-Subject: [PATCH] fix(fs-lib): remove quoting form the first argument of the
- e2fsck call
-
-Fix regression.
----
- modules.d/99fs-lib/fs-lib.sh | 3 ++-
- 1 file changed, 2 insertions(+), 1 deletion(-)
-
-diff --git a/modules.d/99fs-lib/fs-lib.sh b/modules.d/99fs-lib/fs-lib.sh
-index dd20731f2..c4640fa8a 100755
---- a/modules.d/99fs-lib/fs-lib.sh
-+++ b/modules.d/99fs-lib/fs-lib.sh
-@@ -107,7 +107,8 @@ fsck_drv_com() {
- 
-     info "issuing $_drv $_fop $_dev"
-     # we enforce non-interactive run, so $() is fine
--    _out=$($_drv "$_fop" "$_dev")
-+    # shellcheck disable=SC2086
-+    _out=$($_drv $_fop "$_dev")
-     _ret=$?
-     fsck_tail
- 
diff --git a/srcpkgs/dracut/patches/force_poweroff.patch b/srcpkgs/dracut/patches/force_poweroff.patch
deleted file mode 100644
index 9056685e32b97a..00000000000000
--- a/srcpkgs/dracut/patches/force_poweroff.patch
+++ /dev/null
@@ -1,30 +0,0 @@
-The shutdown binary is actually provided by runit and expects the runit
-init to be running. This is not the case in the initramfs. Forcing the
-shutdown, halt or reboot is necessary to ignore this requirement.
-
----
- modules.d/99base/dracut-lib.sh | 6 +++---
- 1 file changed, 3 insertions(+), 3 deletions(-)
-
-diff --git a/modules.d/99base/dracut-lib.sh b/modules.d/99base/dracut-lib.sh
---- a/modules.d/99base/dracut-lib.sh
-+++ b/modules.d/99base/dracut-lib.sh
-@@ -1004,13 +1004,13 @@ emergency_shell() {
-
-     case "$_emergency_action" in
-         reboot)
--            reboot || exit 1
-+            reboot -f || exit 1
-             ;;
-         poweroff)
--            poweroff || exit 1
-+            poweroff -f || exit 1
-             ;;
-         halt)
--            halt || exit 1
-+            halt -f || exit 1
-             ;;
-     esac
- }
---
-2.37.3
diff --git a/srcpkgs/dracut/patches/isoscan-udev-trigger.patch b/srcpkgs/dracut/patches/isoscan-udev-trigger.patch
deleted file mode 100644
index b80e966266b45d..00000000000000
--- a/srcpkgs/dracut/patches/isoscan-udev-trigger.patch
+++ /dev/null
@@ -1,25 +0,0 @@
-This upstream accepted patch fixes a bug where the live images don't work when
-booted from grub loopback (void-linux/void-mklive#294).
-
-From d880d62f5f81d7ec69555f5deb60694fdb693c01 Mon Sep 17 00:00:00 2001
-From: 0x5c <dev@0x5c.io>
-Date: Thu, 9 Feb 2023 05:26:30 -0500
-Subject: [PATCH] fix: make iso-scan trigger udev events
-
-Fixes #2183
----
- modules.d/90dmsquash-live/iso-scan.sh | 1 +
- 1 file changed, 1 insertion(+)
-
-diff --git a/modules.d/90dmsquash-live/iso-scan.sh b/modules.d/90dmsquash-live/iso-scan.sh
-index 886d23033..fa06b33cd 100755
---- a/modules.d/90dmsquash-live/iso-scan.sh
-+++ b/modules.d/90dmsquash-live/iso-scan.sh
-@@ -22,6 +22,7 @@ do_iso_scan() {
-         mount -t auto -o ro "$dev" "/run/initramfs/isoscan" || continue
-         if [ -f "/run/initramfs/isoscan/$isofile" ]; then
-             losetup -f "/run/initramfs/isoscan/$isofile"
-+            udevadm trigger --action=add > /dev/null 2>&1
-             ln -s "$dev" /run/initramfs/isoscandev
-             rm -f -- "$job"
-             exit 0
diff --git a/srcpkgs/dracut/patches/network.patch b/srcpkgs/dracut/patches/network.patch
deleted file mode 100644
index dce39fdc6f7a53..00000000000000
--- a/srcpkgs/dracut/patches/network.patch
+++ /dev/null
@@ -1,37 +0,0 @@
-From 11a34f6b55f91610effd79ff1bf6a4bb2db760d3 Mon Sep 17 00:00:00 2001
-From: Laszlo Gombos <laszlo.gombos@gmail.com>
-Date: Wed, 18 Jan 2023 19:59:24 +0000
-Subject: [PATCH] meta module should check if module exists
-
-Bug: https://github.com/dracutdevs/dracut/issues/1756
----
- modules.d/40network/module-setup.sh | 8 ++++----
- 1 file changed, 4 insertions(+), 4 deletions(-)
-
-diff --git a/modules.d/40network/module-setup.sh b/modules.d/40network/module-setup.sh
-index 1ab13ef..078cb4b 100755
---- a/modules.d/40network/module-setup.sh
-+++ b/modules.d/40network/module-setup.sh
-@@ -17,15 +17,15 @@ depends() {
-     done
-
-     if [ -z "$network_handler" ]; then
--        if [[ -e $dracutsysrootdir$systemdsystemunitdir/wicked.service ]]; then
-+        if [[ -d "$dracutbasedir"/modules.d/35network-wicked ]]  && [[ -e $dracutsysrootdir$systemdsystemunitdir/wicked.service ]]; then
-             network_handler="network-wicked"
--        elif [[ -e $dracutsysrootdir$systemdsystemunitdir/connman.service ]]; then
-+        elif [[ -d "$dracutbasedir"/modules.d/35connman ]]  && [[ -e $dracutsysrootdir$systemdsystemunitdir/connman.service ]]; then
-             network_handler="connman"
--        elif [[ -x $dracutsysrootdir/usr/libexec/nm-initrd-generator ]] || [[ -x $dracutsysrootdir/usr/lib/nm-initrd-generator ]]; then
-+        elif [[ -d "$dracutbasedir"/modules.d/35network-manager ]]  && ( [[ -x $dracutsysrootdir/usr/libexec/nm-initrd-generator ]] || [[ -x $dracutsysrootdir/usr/lib/nm-initrd-generator ]] ); then
-             network_handler="network-manager"
--        elif [[ -x $dracutsysrootdir$systemdutildir/systemd-networkd ]]; then
-+        elif [[ -d "$dracutbasedir"/modules.d/01systemd-networkd ]] && [[ -x $dracutsysrootdir$systemdutildir/systemd-networkd ]]; then
-             network_handler="systemd-networkd"
--        else
-+        elif [[ -d "$dracutbasedir"/modules.d/35network-legacy ]]; then
-             network_handler="network-legacy"
-         fi
-     fi
---
-2.34.1
diff --git a/srcpkgs/dracut/patches/silence-setfont.patch b/srcpkgs/dracut/patches/silence-setfont.patch
deleted file mode 100644
index 377c0f3a8981a7..00000000000000
--- a/srcpkgs/dracut/patches/silence-setfont.patch
+++ /dev/null
@@ -1,19 +0,0 @@
-https://github.com/void-linux/void-packages/issues/45216
-
-I'm tired of seeing these setfont errors. This will hopefully/eventually be upstreamed, but I'm not holding my breath.
-
----
-
-diff --git a/modules.d/10i18n/console_init.sh b/modules.d/10i18n/console_init.sh
-index 3fe3b673..0e19ae30 100755
---- a/modules.d/10i18n/console_init.sh
-+++ b/modules.d/10i18n/console_init.sh
-@@ -49,7 +49,7 @@ set_font() {
-     setfont "${FONT-${DEFAULT_FONT}}" \
-         -C "${1}" \
-         ${FONT_MAP:+-m "${FONT_MAP}"} \
--        ${FONT_UNIMAP:+-u "${FONT_UNIMAP}"}
-+        ${FONT_UNIMAP:+-u "${FONT_UNIMAP}"} 2>/dev/null
- }
- 
- dev_close() {
diff --git a/srcpkgs/dracut/template b/srcpkgs/dracut/template
index 313e2d98719358..aa0414e0480820 100644
--- a/srcpkgs/dracut/template
+++ b/srcpkgs/dracut/template
@@ -1,7 +1,7 @@
 # Template file for 'dracut'
 pkgname=dracut
-version=059
-revision=7
+version=103
+revision=1
 build_style=configure
 configure_args="--prefix=/usr --sysconfdir=/etc"
 conf_files="/etc/dracut.conf"
@@ -11,10 +11,10 @@ depends="bash coreutils cpio eudev gzip kmod>=3.7 kpartx util-linux"
 short_desc="Low-level tool for generating an initramfs/initrd image"
 maintainer="Zach Dykstra <dykstra.zachary@gmail.com>"
 license="GPL-2.0-or-later, LGPL-2.0-or-later"
-homepage="https://github.com/dracutdevs/dracut/wiki"
-changelog="https://raw.githubusercontent.com/dracutdevs/dracut/master/NEWS.md"
-distfiles="https://github.com/dracutdevs/dracut/archive/refs/tags/${version}.tar.gz"
-checksum=eabf0bb685420c1e1d5475b6855ef787104508f0135ff570312845256e0fcecf
+homepage="https://github.com/dracut-ng/dracut-ng/wiki"
+changelog="https://raw.githubusercontent.com/dracut-ng/dracut-ng/master/NEWS.md"
+distfiles="https://github.com/dracut-ng/dracut-ng/archive/refs/tags/${version}.tar.gz"
+checksum=9a92b4f0643926a65162171d68b9525fc93e6e82f455a4b3938db385a841bda8
 alternatives="
  initramfs:/etc/kernel.d/post-install/20-initramfs:/usr/libexec/dracut/kernel-hook-postinst
  initramfs:/etc/kernel.d/post-remove/20-initramfs:/usr/libexec/dracut/kernel-hook-postrm
@@ -32,7 +32,7 @@ if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
 fi
 
 case "$XBPS_TARGET_MACHINE" in
-	i686*|x86_64*) # archs supported by dracut for EFI bundle
+	i686*|x86_64*|aarch64*) # archs supported by dracut for EFI bundle
 		subpackages+=" dracut-uefi"
 	;;
 esac
@@ -52,15 +52,14 @@ post_install() {
 
 	# systemd dependent additional dracut modules
 	for f in 06rngd 06dbus-broker 06dbus-daemon 09dbus \
-		35connman 35network-manager 35network-wicked 80lvmmerge \
+		35connman 35network-manager 80lvmmerge \
 		99memstrack 99squash; do
 		rm -r ${DESTDIR}/usr/lib/dracut/modules.d/${f}
 	done
 
 	# don't need s390x architecture dependent dracut modules
 	for f in 80cms 81cio_ignore 91zipl 95dasd 95dasd_mod \
-		95dasd_rules 95dcssblk 95qeth_rules 95zfcp \
-		95zfcp_rules 95znet; do
+		95dcssblk 95zfcp 95znet; do
 		rm -r ${DESTDIR}/usr/lib/dracut/modules.d/${f}
 	done
 

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

end of thread, other threads:[~2024-11-03 19:09 UTC | newest]

Thread overview: 50+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-07-19 20:52 [PR PATCH] dracut: update to 103, switch to dracut-ng classabbyamp
2024-07-22  0:12 ` LaszloGombos
2024-07-22  1:24 ` classabbyamp
2024-07-22  2:08 ` LaszloGombos
2024-07-22 20:42 ` [PR PATCH] [Updated] " classabbyamp
2024-08-07  1:47 ` jozzsi
2024-08-07 21:28 ` [PR PATCH] [Updated] " classabbyamp
2024-09-08 22:59 ` jozzsi
2024-09-12 18:11 ` slymattz
2024-09-12 18:55 ` slymattz
2024-09-12 18:58 ` slymattz
2024-09-12 19:03 ` jozzsi
2024-09-12 19:04 ` jozzsi
2024-09-12 19:13 ` slymattz
2024-09-12 19:15 ` slymattz
2024-09-12 19:48 ` slymattz
2024-09-28 15:46 ` jozzsi
2024-10-06 19:53 ` manfred3000
2024-10-06 20:07 ` manfred3000
2024-10-06 20:22 ` jozzsi
2024-10-06 20:29 ` manfred3000
2024-10-06 20:30 ` manfred3000
2024-10-06 20:38 ` classabbyamp
2024-10-10  0:48 ` jozzsi
2024-10-12  1:26 ` [PR PATCH] [Updated] " classabbyamp
2024-10-12  1:31 ` classabbyamp
2024-10-12  1:55 ` dracut: update to 104, " classabbyamp
2024-10-12  4:00 ` zdykstra
2024-10-12  4:27 ` classabbyamp
2024-10-12 12:12 ` jozzsi
2024-10-12 12:13 ` jozzsi
2024-10-12 12:14 ` jozzsi
2024-10-13  0:02 ` Calandracas606
2024-10-13  0:14 ` [PR PATCH] [Updated] " classabbyamp
2024-10-13  0:28 ` classabbyamp
2024-10-13  0:30 ` classabbyamp
2024-10-13 13:12 ` jozzsi
2024-10-15 18:02 ` classabbyamp
2024-10-15 18:05 ` classabbyamp
2024-10-15 18:06 ` classabbyamp
2024-10-15 18:07 ` [PR PATCH] [Updated] " classabbyamp
2024-10-15 18:37 ` dracut: update to 105, " jozzsi
2024-10-15 18:44 ` classabbyamp
2024-10-15 19:01 ` jozzsi
2024-10-16 17:58 ` [PR PATCH] [Updated] " classabbyamp
2024-10-16 18:00 ` classabbyamp
2024-10-28 19:51 ` [PR PATCH] [Merged]: " classabbyamp
2024-11-03 16:18 ` TeusLollo
2024-11-03 16:24 ` classabbyamp
2024-11-03 19:09 ` jozzsi

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