void-packages/srcpkgs/dracut/patches/amd-ucode-readme.patch

27 lines
1.0 KiB
Diff

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]}"