From ee9476348b72e666ea42c4fa72c1e88ddce7cc0b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Peter=20M=C3=BCller?= Date: Mon, 3 Jul 2023 17:50:36 +0000 Subject: [PATCH] Core Update 177: Rebuild initial ramdisk to apply AMD microcode updates MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Peter Müller --- config/rootfiles/core/177/update.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/config/rootfiles/core/177/update.sh b/config/rootfiles/core/177/update.sh index a3a141dae0..43f9a02f6d 100644 --- a/config/rootfiles/core/177/update.sh +++ b/config/rootfiles/core/177/update.sh @@ -59,6 +59,16 @@ if [ -f /var/ipfire/proxy/enable ]; then /etc/init.d/squid restart fi +# Rebuild initial ramdisk to apply microcode updates +dracut --regenerate-all --force +KVER="xxxKVERxxx" +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