]> git.ipfire.org Git - people/mfischer/ipfire-2.x.git/commitdiff
Core Update 168: Ship intel-microcodes and rebuild initrds
authorPeter Müller <peter.mueller@ipfire.org>
Sun, 8 May 2022 11:41:09 +0000 (11:41 +0000)
committerPeter Müller <peter.mueller@ipfire.org>
Sun, 8 May 2022 11:41:09 +0000 (11:41 +0000)
Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
config/rootfiles/core/168/filelists/x86_64/intel-microcode [new symlink]
config/rootfiles/core/168/update.sh

diff --git a/config/rootfiles/core/168/filelists/x86_64/intel-microcode b/config/rootfiles/core/168/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 f62c3810ae155181e9c0754605a6492420bab934..fd475af3cb561bfe438e81e546c8071e0c08c0a6 100644 (file)
@@ -104,6 +104,20 @@ rm -vf \
 chmod -v 750 /etc/sudoers.d
 chmod -v 640 /etc/sudoers.d/*
 
+# Rebuild initial ramdisk to apply microcode updates
+dracut --regenerate-all --force
+case "$(uname -m)" in
+        armv*)
+                mkimage -A arm -T ramdisk -C lzma -d /boot/initramfs-${KVER}-ipfire.img /boot/uInit-${KVER}-ipfire
+                rm /boot/initramfs-${KVER}-ipfire.img
+                ;;
+        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
+
+
 # Start services
 /etc/init.d/fcron restart
 /etc/init.d/sshd restart