From 9e171282da6bd13e89963d8ca18b12892af51b36 Mon Sep 17 00:00:00 2001 From: TNE <38938720+JustTNE@users.noreply.github.com> Date: Wed, 17 Sep 2025 07:41:05 +0200 Subject: [PATCH] Get default early initrd list from GRUB_EARLY_INITRD_LINUX_STOCK (#389) This mimics the behavior of grub more precisely Fixes #388 --- 41_snapshots-btrfs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/41_snapshots-btrfs b/41_snapshots-btrfs index 3aac239..2d281dd 100755 --- a/41_snapshots-btrfs +++ b/41_snapshots-btrfs @@ -488,12 +488,8 @@ detect_microcode() list_ucode=() # Original intel/amd microcode (auto-detect) # See "https://www.gnu.org/software/grub/manual/grub/html_node/Simple-configuration.html" - for oiucode in "${boot_dir}"/intel-uc.img \ - "${boot_dir}"/intel-ucode.img \ - "${boot_dir}"/amd-uc.img \ - "${boot_dir}"/amd-ucode.img \ - "${boot_dir}"/early_ucode.cpio \ - "${boot_dir}"/microcode.cpio; do + for oiucode in ${GRUB_EARLY_INITRD_LINUX_STOCK} ; do + oiucode="${boot_dir}/${oiucode}" [ ! -f "${oiucode}" ] && continue; list_ucode+=("$oiucode") done