public inbox for development@lists.ipfire.org
 help / color / mirror / Atom feed
* [PATCH] Core Update 169: Regenerate initrds and save space on ARM
@ 2022-07-07  5:46 Peter Müller
  2022-07-07  5:48 ` Peter Müller
  0 siblings, 1 reply; 16+ messages in thread
From: Peter Müller @ 2022-07-07  5:46 UTC (permalink / raw)
  To: development

[-- Attachment #1: Type: text/plain, Size: 1049 bytes --]

https://community.ipfire.org/t/again-with-the-file-system-full-core-169/8186

Signed-off-by: Peter Müller <peter.mueller(a)ipfire.org>
---
 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
 
+# 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
+
 # Start services
 telinit u
 /etc/init.d/firewall restart
-- 
2.35.3

^ permalink raw reply	[flat|nested] 16+ messages in thread
[parent not found: <83713DF0-29F4-4604-8804-C0D7C350BA92@gmail.com>]

end of thread, other threads:[~2022-07-12 11:00 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-07  5:46 [PATCH] Core Update 169: Regenerate initrds and save space on ARM Peter Müller
2022-07-07  5:48 ` Peter Müller
2022-07-07 13:19   ` Michael Tremer
2022-07-07 13:30     ` Peter Müller
2022-07-07 13:43       ` Michael Tremer
2022-07-07 13:49         ` Peter Müller
2022-07-07 13:53           ` Michael Tremer
2022-07-07 13:54             ` Peter Müller
2022-07-07 13:54               ` Michael Tremer
2022-07-07 13:58                 ` [PATCH v2] Core Update 169: Delete unused initrd on 32-bit ARM to save space in /boot Peter Müller
2022-07-07 14:02                   ` Michael Tremer
2022-07-07 14:05                     ` Peter Müller
2022-07-07 14:11                       ` Michael Tremer
     [not found] <83713DF0-29F4-4604-8804-C0D7C350BA92@gmail.com>
2022-07-10 10:13 ` [PATCH] Core Update 169: Regenerate initrds and save space on ARM Peter Müller
2022-07-12 10:35   ` Michael Tremer
2022-07-12 11:00     ` Adolf Belka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox