diff options
Diffstat (limited to 'main/syslinux/update-extlinux')
-rwxr-xr-x | main/syslinux/update-extlinux | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/main/syslinux/update-extlinux b/main/syslinux/update-extlinux index 3ee258cd06..63c3fda27a 100755 --- a/main/syslinux/update-extlinux +++ b/main/syslinux/update-extlinux @@ -167,7 +167,18 @@ for kernel in $(find /boot -name "vmlinuz*" -type f); do echo " LINUX $(basename $kernel)" >> $conf.new if [ -f "/boot/initramfs-$tag" ]; then everbose "Found initramfs: /boot/initramfs-$tag" - echo " INITRD initramfs-$tag" >> $conf.new + initrd="initramfs-$tag" + if [ -f "/boot/intel-ucode.img" ]; then + everbose "Found microcode for Intel CPUs: /boot/intel-ucode.img" + initrd="intel-ucode.img,${initrd}" + fi + echo " INITRD ${initrd}" >> $conf.new + else + if [ -f "/boot/intel-ucode.img" ]; then + everbose "Found microcode for Intel CPUs: /boot/intel-ucode.img" + initrd="intel-ucode.img${initrd}" + echo " INITRD intel-ucode.img" >> $conf.new + fi fi echo " APPEND root=$root modules=${modules}${TYPE:+,$TYPE} $default_kernel_opts" >> $conf.new echo "" >> $conf.new |