From c14d53e979a6a3aa3d4155b8bbe0a59199bb02aa Mon Sep 17 00:00:00 2001 From: =?utf8?q?Peter=20M=C3=BCller?= Date: Sun, 5 Mar 2023 14:56:54 +0000 Subject: [PATCH] Core Update 174: Ship intel-microcode and rebuild initrds MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Peter Müller --- .../rootfiles/core/174/filelists/x86_64/intel-microcode | 1 + config/rootfiles/core/174/update.sh | 9 +++++++++ 2 files changed, 10 insertions(+) create mode 120000 config/rootfiles/core/174/filelists/x86_64/intel-microcode diff --git a/config/rootfiles/core/174/filelists/x86_64/intel-microcode b/config/rootfiles/core/174/filelists/x86_64/intel-microcode new file mode 120000 index 0000000000..d5ac074e2e --- /dev/null +++ b/config/rootfiles/core/174/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/174/update.sh b/config/rootfiles/core/174/update.sh index 49280a89ad..80917a7f5d 100644 --- a/config/rootfiles/core/174/update.sh +++ b/config/rootfiles/core/174/update.sh @@ -56,6 +56,15 @@ if [ -f /var/ipfire/proxy/enable ]; then /etc/init.d/squid start fi +# Rebuild initial ramdisk to apply microcode updates +dracut --regenerate-all --force +case "$(uname -m)" in + aarch64) + mkimage -A arm64 -T ramdisk -C lzma -d /boot/initramfs-${KVER}-ipfire.img /boot/uInit-${KVER}-ipfire + # dont remove initramfs because grub need this to boot. + ;; +esac + # This update needs a reboot... touch /var/run/need_reboot -- 2.39.5