diff options
Diffstat (limited to 'main/syslinux/update-extlinux')
-rwxr-xr-x | main/syslinux/update-extlinux | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/main/syslinux/update-extlinux b/main/syslinux/update-extlinux index 63c3fda27a..f82066f9e9 100755 --- a/main/syslinux/update-extlinux +++ b/main/syslinux/update-extlinux @@ -165,21 +165,16 @@ for kernel in $(find /boot -name "vmlinuz*" -type f); do fi echo " MENU LABEL Linux $tag" >> $conf.new echo " LINUX $(basename $kernel)" >> $conf.new + initrd= if [ -f "/boot/initramfs-$tag" ]; then everbose "Found initramfs: /boot/initramfs-$tag" 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 + if [ -f "/boot/intel-ucode.img" ]; then + everbose "Found microcode for Intel CPUs: /boot/intel-ucode.img" + initrd="intel-ucode.img${initrd:+,}${initrd}" + fi + echo " INITRD ${initrd}" >> $conf.new echo " APPEND root=$root modules=${modules}${TYPE:+,$TYPE} $default_kernel_opts" >> $conf.new echo "" >> $conf.new lst=$(($lst + 1)) |