Skip to content

Commit 9e17128

Browse files
authored
Get default early initrd list from GRUB_EARLY_INITRD_LINUX_STOCK (#389)
This mimics the behavior of grub more precisely Fixes #388
1 parent b509fca commit 9e17128

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

41_snapshots-btrfs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -488,12 +488,8 @@ detect_microcode()
488488
list_ucode=()
489489
# Original intel/amd microcode (auto-detect)
490490
# See "https://www.gnu.org/software/grub/manual/grub/html_node/Simple-configuration.html"
491-
for oiucode in "${boot_dir}"/intel-uc.img \
492-
"${boot_dir}"/intel-ucode.img \
493-
"${boot_dir}"/amd-uc.img \
494-
"${boot_dir}"/amd-ucode.img \
495-
"${boot_dir}"/early_ucode.cpio \
496-
"${boot_dir}"/microcode.cpio; do
491+
for oiucode in ${GRUB_EARLY_INITRD_LINUX_STOCK} ; do
492+
oiucode="${boot_dir}/${oiucode}"
497493
[ ! -f "${oiucode}" ] && continue;
498494
list_ucode+=("$oiucode")
499495
done

0 commit comments

Comments
 (0)