]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
core153: Ship Intel mircocode and ask for reboot
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 11 Nov 2020 11:52:13 +0000 (11:52 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 11 Nov 2020 11:53:23 +0000 (11:53 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
config/rootfiles/core/153/filelists/i586/intel-microcode [new symlink]
config/rootfiles/core/153/filelists/x86_64/intel-microcode [new symlink]
config/rootfiles/core/153/update.sh

diff --git a/config/rootfiles/core/153/filelists/i586/intel-microcode b/config/rootfiles/core/153/filelists/i586/intel-microcode
new file mode 120000 (symlink)
index 0000000..f03e847
--- /dev/null
@@ -0,0 +1 @@
+../../../../common/i586/intel-microcode
\ No newline at end of file
diff --git a/config/rootfiles/core/153/filelists/x86_64/intel-microcode b/config/rootfiles/core/153/filelists/x86_64/intel-microcode
new file mode 120000 (symlink)
index 0000000..d5ac074
--- /dev/null
@@ -0,0 +1 @@
+../../../../common/x86_64/intel-microcode
\ No newline at end of file
index a6ddc00192c921f9e33642ef3581e820f31a1383..8e528b259826e97e1272bc846c1c2378e9c10df6 100644 (file)
@@ -57,7 +57,7 @@ chown -vR root:root /etc/ntp
 sysctl -p
 
 # This update needs a reboot...
-#touch /var/run/need_reboot
+touch /var/run/need_reboot
 
 # Finish
 /etc/init.d/fireinfo start
@@ -70,5 +70,11 @@ fi
 
 sync
 
+# Reload microcode
+modprobe microcode
+if [ -w "/sys/devices/system/cpu/microcode/reload" ]; then
+       echo 1 > /sys/devices/system/cpu/microcode/reload
+fi
+
 # Don't report the exitcode last command
 exit 0