From c22d834ca84af6155eab7020c6b031e1e8c7e764 Mon Sep 17 00:00:00 2001 From: Arne Fitzenreiter Date: Mon, 2 May 2022 21:57:42 +0000 Subject: [PATCH] core167: generate uInit ramdisk images for u-boot Signed-off-by: Arne Fitzenreiter --- config/rootfiles/core/167/update.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/config/rootfiles/core/167/update.sh b/config/rootfiles/core/167/update.sh index 399978bcce..f447a924b3 100644 --- a/config/rootfiles/core/167/update.sh +++ b/config/rootfiles/core/167/update.sh @@ -385,6 +385,16 @@ hardlink -c -vv /lib/firmware # Regenerate all initrds 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 # Replace /etc/mtab by symlink as mount no longer writes it rm -vf /etc/mtab -- 2.39.5