From: Peter Müller Date: Sun, 8 May 2022 11:41:09 +0000 (+0000) Subject: Core Update 168: Ship intel-microcodes and rebuild initrds X-Git-Tag: v2.27-core170~185 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3e2e9c159389db191989ad2cb0553d5b9a2bae9f;p=ipfire-2.x.git Core Update 168: Ship intel-microcodes and rebuild initrds Signed-off-by: Peter Müller --- 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 index 0000000000..d5ac074e2e --- /dev/null +++ b/config/rootfiles/core/168/filelists/x86_64/intel-microcode @@ -0,0 +1 @@ +../../../../common/x86_64/intel-microcode \ No newline at end of file diff --git a/config/rootfiles/core/168/update.sh b/config/rootfiles/core/168/update.sh index f62c3810ae..fd475af3cb 100644 --- a/config/rootfiles/core/168/update.sh +++ b/config/rootfiles/core/168/update.sh @@ -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