Ignore amd & intel ucode initrd's, making this work on systems with ucodes installed #19
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I've made this script ignore any intel or amd microcode images, making it work on distros with such packages installed (such as Arch Linux with
amd-ucodeinstalled). This fixes the major issue mentioned in #8 (the script failing when microcode is installed), but does not actually implement multiple initrd support. It simply removes any initrd's namedintel-ucode.imgoramd-ucode.imgfrom the argument list.As this comment on issue #8 states, microcodes persist kexec's and cannot be loaded twice, so this should be fine.
Only affects GRUB 2, tested on two Arch Linux installations with GRUB 2, one with only
amd-ucodeand one with bothintel-ucodeandamd-ucode. Does not affect initrd's on GRUB 1 (since i do not have a system with GRUB 1)