From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter =?utf-8?q?M=C3=BCller?= To: development@lists.ipfire.org Subject: [PATCH] Core Update 169: Regenerate initrds and save space on ARM Date: Thu, 07 Jul 2022 05:46:18 +0000 Message-ID: <3e57aa59-ee6f-bff4-68b4-0ac078d76cee@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5399909117893063925==" List-Id: --===============5399909117893063925== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable https://community.ipfire.org/t/again-with-the-file-system-full-core-169/8186 Signed-off-by: Peter M=C3=BCller --- config/rootfiles/core/169/update.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/config/rootfiles/core/169/update.sh b/config/rootfiles/core/169/= update.sh index 3902e2d45..50f0bd8a4 100644 --- a/config/rootfiles/core/169/update.sh +++ b/config/rootfiles/core/169/update.sh @@ -150,6 +150,19 @@ ldconfig # Apply sysctl changes /etc/init.d/sysctl start =20 +# 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 /b= oot/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 telinit u /etc/init.d/firewall restart --=20 2.35.3 --===============5399909117893063925==--