]> git.ipfire.org Git - people/stevee/ipfire-2.x.git/commitdiff
Core Update 174: Ship intel-microcode and rebuild initrds
authorPeter Müller <peter.mueller@ipfire.org>
Sun, 5 Mar 2023 14:56:54 +0000 (14:56 +0000)
committerPeter Müller <peter.mueller@ipfire.org>
Sun, 5 Mar 2023 14:56:54 +0000 (14:56 +0000)
Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
config/rootfiles/core/174/filelists/x86_64/intel-microcode [new symlink]
config/rootfiles/core/174/update.sh

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 (symlink)
index 0000000..d5ac074
--- /dev/null
@@ -0,0 +1 @@
+../../../../common/x86_64/intel-microcode
\ No newline at end of file
index 49280a89ad2876fee8febfa1a06d45f9e8e64840..80917a7f5df912925d8473f142fbc4bb811eaa87 100644 (file)
@@ -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