From 3e2e9c159389db191989ad2cb0553d5b9a2bae9f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Peter=20M=C3=BCller?= Date: Sun, 8 May 2022 11:41:09 +0000 Subject: [PATCH] Core Update 168: Ship intel-microcodes and rebuild initrds MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Peter Müller --- .../core/168/filelists/x86_64/intel-microcode | 1 + config/rootfiles/core/168/update.sh | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 120000 config/rootfiles/core/168/filelists/x86_64/intel-microcode 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 -- 2.39.5