From c015d425d177a18927f56cebd0d1b4d29a827d8b Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Sun, 14 Jan 2018 15:43:57 +0000 Subject: [PATCH] core118: Ship microcode updates for Intel processors Signed-off-by: Michael Tremer --- config/rootfiles/core/118/filelists/files | 1 + .../rootfiles/core/118/filelists/i586/intel-microcode | 1 + .../core/118/filelists/x86_64/intel-microcode | 1 + config/rootfiles/core/118/update.sh | 11 ++++++++++- 4 files changed, 13 insertions(+), 1 deletion(-) create mode 120000 config/rootfiles/core/118/filelists/i586/intel-microcode create mode 120000 config/rootfiles/core/118/filelists/x86_64/intel-microcode diff --git a/config/rootfiles/core/118/filelists/files b/config/rootfiles/core/118/filelists/files index 4d1873530..162f586d3 100644 --- a/config/rootfiles/core/118/filelists/files +++ b/config/rootfiles/core/118/filelists/files @@ -9,6 +9,7 @@ srv/web/ipfire/cgi-bin/fireinfo.cgi srv/web/ipfire/cgi-bin/ids.cgi srv/web/ipfire/cgi-bin/logs.cgi/showrequestfromcountry.dat srv/web/ipfire/cgi-bin/logs.cgi/urlfilter.dat +usr/local/bin/rebuild-initrd usr/sbin/updxlrator var/ipfire/langs var/ipfire/updatexlrator/bin/download diff --git a/config/rootfiles/core/118/filelists/i586/intel-microcode b/config/rootfiles/core/118/filelists/i586/intel-microcode new file mode 120000 index 000000000..f03e84778 --- /dev/null +++ b/config/rootfiles/core/118/filelists/i586/intel-microcode @@ -0,0 +1 @@ +../../../../common/i586/intel-microcode \ No newline at end of file diff --git a/config/rootfiles/core/118/filelists/x86_64/intel-microcode b/config/rootfiles/core/118/filelists/x86_64/intel-microcode new file mode 120000 index 000000000..d5ac074e2 --- /dev/null +++ b/config/rootfiles/core/118/filelists/x86_64/intel-microcode @@ -0,0 +1 @@ +../../../../common/x86_64/intel-microcode \ No newline at end of file diff --git a/config/rootfiles/core/118/update.sh b/config/rootfiles/core/118/update.sh index 60173609f..545c8ef53 100644 --- a/config/rootfiles/core/118/update.sh +++ b/config/rootfiles/core/118/update.sh @@ -59,7 +59,16 @@ ldconfig /etc/init.d/snort start # This update need a reboot... -#touch /var/run/need_reboot +touch /var/run/need_reboot + +# Rebuild the initrd to include the microcode updates +rebuild-initrd + +# Reload microcode +modprobe microcode +if [ -w "/sys/devices/system/cpu/microcode/reload" ]; + echo 1 > /sys/devices/system/cpu/microcode/reload +fi # Finish /etc/init.d/fireinfo start -- 2.39.2