Core Update 177: Rebuild initial ramdisk to apply AMD microcode updates

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
This commit is contained in:
Peter Müller
2023-07-03 17:50:36 +00:00
parent 5ea686072b
commit ee9476348b

View 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