mirror of
https://github.com/Antynea/grub-btrfs.git
synced 2026-10-20 02:42:03 +08:00
Get default early initrd list from GRUB_EARLY_INITRD_LINUX_STOCK (#389)
This mimics the behavior of grub more precisely Fixes #388
This commit is contained in:
+2
-6
@@ -488,12 +488,8 @@ detect_microcode()
|
|||||||
list_ucode=()
|
list_ucode=()
|
||||||
# Original intel/amd microcode (auto-detect)
|
# Original intel/amd microcode (auto-detect)
|
||||||
# See "https://www.gnu.org/software/grub/manual/grub/html_node/Simple-configuration.html"
|
# See "https://www.gnu.org/software/grub/manual/grub/html_node/Simple-configuration.html"
|
||||||
for oiucode in "${boot_dir}"/intel-uc.img \
|
for oiucode in ${GRUB_EARLY_INITRD_LINUX_STOCK} ; do
|
||||||
"${boot_dir}"/intel-ucode.img \
|
oiucode="${boot_dir}/${oiucode}"
|
||||||
"${boot_dir}"/amd-uc.img \
|
|
||||||
"${boot_dir}"/amd-ucode.img \
|
|
||||||
"${boot_dir}"/early_ucode.cpio \
|
|
||||||
"${boot_dir}"/microcode.cpio; do
|
|
||||||
[ ! -f "${oiucode}" ] && continue;
|
[ ! -f "${oiucode}" ] && continue;
|
||||||
list_ucode+=("$oiucode")
|
list_ucode+=("$oiucode")
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user