Hello,

On Wed, Jun 19, 2019 at 10:48:17PM +0200, Uwe Kleine-König wrote:
> some time ago I wanted to install a kernel update on my NAS (Netgear
> ReadyNAS 104/armhf). However that failed with:
> 
>         ...
>         update-initramfs: Generating /boot/initrd.img-4.19.0-5-armmp
>         Using DTB: armada-370-netgear-rn104.dtb
>         Installing 
> /usr/lib/linux-image-4.19.0-5-armmp/armada-370-netgear-rn104.dtb into 
> /boot/dtbs/4.19.0-5-armmp/./armada-370-netgear-rn104.dtb
>         Taking backup of armada-370-netgear-rn104.dtb.
>         Installing new armada-370-netgear-rn104.dtb.
>         Installing 
> /usr/lib/linux-image-4.19.0-5-armmp/armada-370-netgear-rn104.dtb into 
> /boot/dtbs/4.19.0-5-armmp/./armada-370-netgear-rn104.dtb
>         Taking backup of armada-370-netgear-rn104.dtb.
>         Installing new armada-370-netgear-rn104.dtb.
>         flash-kernel: installing version 4.19.0-5-armmp
> 
>         The initial ramdisk is too large. This is often due to the 
> unnecessary inclusion
>         of all kernel modules in the image. To fix this set MODULES=dep in 
> one or both
>         /etc/initramfs-tools/conf.d/driver-policy (if it exists) and
>         /etc/initramfs-tools/initramfs.conf and then run 'update-initramfs -u 
> -k 4.19.0-5-armmp'
> 
>         Not enough space for initrd in MTD 'minirootfs' (need 4821508 but is 
> actually 4194304).
>         run-parts: /etc/initramfs/post-update.d//flash-kernel exited with 
> return code 1
>         dpkg: error processing package initramfs-tools (--configure):
>          installed initramfs-tools package post-installation script 
> subprocess returned error exit status 1
>         Errors were encountered while processing:
>          initramfs-tools
>         E: Sub-process /usr/bin/dpkg returned an error code (1)

For the record: I rebuilt libkmod2 locally without openssl now. With
that installed the size of the initramfs went down to 3637508 bytes
(from 4821508 bytes as can be seen above).

Best regards
Uwe

Attachment: signature.asc
Description: PGP signature

Reply via email to