]> git.ipfire.org Git - people/stevee/ipfire-2.x.git/commitdiff
Core Update 177: Rebuild initial ramdisk to apply AMD microcode updates
authorPeter Müller <peter.mueller@ipfire.org>
Mon, 3 Jul 2023 17:50:36 +0000 (17:50 +0000)
committerPeter Müller <peter.mueller@ipfire.org>
Mon, 3 Jul 2023 17:50:36 +0000 (17:50 +0000)
Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
config/rootfiles/core/177/update.sh

index a3a141dae00a467c5382c6bdf3838d038cf52198..43f9a02f6d8504e0a2cd7fd3c0f79d5ab7f758ec 100644 (file)
@@ -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