aboutsummaryrefslogtreecommitdiffstats
path: root/main/syslinux/update-extlinux
diff options
context:
space:
mode:
authorMarian Buschsieweke <marian.buschsieweke@ovgu.de>2017-06-28 08:41:28 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2018-10-26 12:21:45 +0000
commit293a3358836efe6f732bbcede8068c6966c62b97 (patch)
treef1254d765661acd08f6bdf31a4749a501416e384 /main/syslinux/update-extlinux
parentabe1dc5988d12f5aca771605b109390f33ce7519 (diff)
downloadaports-293a3358836efe6f732bbcede8068c6966c62b97.tar.bz2
aports-293a3358836efe6f732bbcede8068c6966c62b97.tar.xz
main/syslinux: Changed update-extlinux to detect intel-ucode
If `/boot/intel-ucode.img` is present, update-extlinux will add it as (first) INITRD. This way the microcode update in package non-free/intel-ucode will be automatically loaded, if installed. This package fixes, among other processor bugs, the hyper-threading bug in Intel Skylake and Kaby Lake processers currently in the news [1]. More details here [2] and here [3]. [1] https://lists.debian.org/debian-devel/2017/06/msg00308.html [2] https://wiki.archlinux.org/index.php/Microcode#Syslinux [3] https://wiki.gentoo.org/wiki/Intel_microcode
Diffstat (limited to 'main/syslinux/update-extlinux')
-rwxr-xr-xmain/syslinux/update-extlinux13
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