]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
Core Update 169: Delete unused initrd on 32-bit ARM to save space in /boot
authorPeter Müller <peter.mueller@ipfire.org>
Thu, 7 Jul 2022 13:58:05 +0000 (13:58 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 7 Jul 2022 14:10:49 +0000 (14:10 +0000)
On 64-bit ARM, this is still needed for booting. Since the initrds were
already shipped with the updater, there is no need to regenerate them
locally again.

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

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
config/rootfiles/core/169/update.sh

index 3902e2d4584ff297aed4333c28d449ac6bf896ce..dc7a2a18abd65d464c862f5a71d6b1a85295865b 100644 (file)
@@ -150,6 +150,13 @@ ldconfig
 # Apply sysctl changes
 /etc/init.d/sysctl start
 
 # Apply sysctl changes
 /etc/init.d/sysctl start
 
+# Delete unused initrd on 32-bit ARM to save space in /boot
+case "$(uname -m)" in
+       armv*)
+               rm /boot/initramfs-${KVER}-ipfire.img
+               ;;
+esac
+
 # Start services
 telinit u
 /etc/init.d/firewall restart
 # Start services
 telinit u
 /etc/init.d/firewall restart