initrd.img 6x are too large, will likely cause failure with lack of space in /boot in next kernel updates.
The initrd.img-6.x.0-1-librem5 with osk-sdl
for kernels 6.2.0-1
, 6.3.0-1
and 6.4.0-1
now use 96,1 MB
of space each.
The /boot
partition on the Librem 5 has 451 MB of space.
With the added vmlinuz
taking 25 MB
each, that means that 3 kernels (3x 96,1 MB
) in the /boot
partition will take up about 363 MB
of space in the boot partiton. Leaving less than 100 MB
free for the kernel update.
That will not be sufficient for the next Kernel update to be completed successfully.because the imitrd
and vmlinuz
for an update now take more than 100MB combined.
And will make most likely that the next kernel update we release to fail to complete on users devices.
ncdu
from my current boot
partition:
96,1 MiB [######### ] initrd.img-6.4.0-1-librem5
96,1 MiB [######### ] initrd.img-6.3.0-1-librem5
25,0 MiB [## ] vmlinuz-6.4.0-1-librem5
24,9 MiB [## ] vmlinuz-6.3.0-1-librem5
3,9 MiB [ ] System.map-6.4.0-1-librem5
3,9 MiB [ ] System.map-6.3.0-1-librem5
566,0 KiB [ ] /dtbs
199,0 KiB [ ] config-6.3.0-1-librem5
198,0 KiB [ ] config-6.4.0-1-librem5
! 12,0 KiB [ ] /lost+found
3,0 KiB [ ] boot.scr.bak
3,0 KiB [ ] boot.scr
2,0 KiB [ ] /grub
@ 0,0 B [ ] dtb-6.4.0-1-librem5
@ 0,0 B [ ] dtb-6.3.0-1-librem5
@ 0,0 B [ ] dtb
apt
from a failed update due to lack of space today. Had to remove the oldest kernel and run the update a second time to fix this.
pigz: abort: write error on <stdout> (No space left on device)#.............]
E: mkinitramfs failure pigz 28
update-initramfs: failed for /boot/initrd.img-6.4.0-1-librem5 with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
The full output:
Setting up linux-image-6.4.0-1-librem5 (6.4.16pureos1~byz1) ...
update-initramfs: Generating /boot/initrd.img-6.4.0-1-librem5
setupcon: The keyboard model is unknown, assuming 'pc105'. Keyboard may be confi
gured incorrectly.
cp: cannot stat '/etc/reader.conf': No such file or directory
pigz: abort: write error on <stdout> (No space left on device)#.............]
E: mkinitramfs failure pigz 28
update-initramfs: failed for /boot/initrd.img-6.4.0-1-librem5 with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
Using DTB: freescale/imx8mq-librem5-r4.dtb
Installing /usr/lib/linux-image-6.4.0-1-librem5/freescale/imx8mq-librem5-r4.dtb into /boot/dtbs/6.4.0-1-librem5/freescale/imx8mq-librem5-r4.dtb
Taking backup of imx8mq-librem5-r4.dtb.
Installing new imx8mq-librem5-r4.dtb.
Installing /usr/lib/linux-image-6.4.0-1-librem5/freescale/imx8mq-librem5-r4.dtb into /boot/dtbs/6.4.0-1-librem5/freescale/imx8mq-librem5-r4.dtb
Taking backup of imx8mq-librem5-r4.dtb.
Installing new imx8mq-librem5-r4.dtb.
flash-kernel: deferring update (trigger activated)
dpkg: error processing package linux-image-6.4.0-1-librem5 (--configure):
installed linux-image-6.4.0-1-librem5 package post-installation script subprocess returned error exit status 1
Setting up ncurses-term (6.2+20201114-2+deb11u2) ...
Setting up openssh-sftp-server (1:8.4p1-5+deb11u2) ...
Setting up libx11-xcb1:arm64 (2:1.7.2-1+deb11u2) ...
Setting up liblapack3:arm64 (3.9.0-3+deb11u1) ...
Setting up libxpm4:arm64 (1:3.5.12-1.1+deb11u1) ...
Setting up libgs9:arm64 (9.53.3~dfsg-7+deb11u6) ...
Setting up openssh-server (1:8.4p1-5+deb11u2) ...
rescue-ssh.target is a disabled or a static unit, not starting it.
Setting up libx11-dev:arm64 (2:1.7.2-1+deb11u2) ...
Setting up ghostscript (9.53.3~dfsg-7+deb11u6) ...
Setting up dbus-user-session (1.12.28-0+deb11u1) ...
Setting up libdbus-1-dev:arm64 (1.12.28-0+deb11u1) ...
dpkg: dependency problems prevent configuration of linux-image-librem5:
linux-image-librem5 depends on linux-image-6.4.0-1-librem5 (>= 6.4.16pureos1~byz1); however:
Package linux-image-6.4.0-1-librem5 is not configured yet.
dpkg: error processing package linux-image-librem5 (--configure):
dependency problems - leaving unconfigured
Setting up libcurl4-openssl-dev:arm64 (7.74.0-1.3+deb11u10) ...
dpkg: dependency problems prevent configuration of librem5-base-defaults:
librem5-base-defaults depends on linux-image-librem5 (>= 6.3.7pureos2) | linux-image-amd64; however:
Package linux-image-librem5 is not configured yet.
Package linux-image-amd64 is not installed.
dpkg: error processing package librem5-base-defaults (--configure):
dependency problems - leaving unconfigured
Setting up libwebkit2gtk-4.0-37:arm64 (2.42.1-1~deb11u2) ...
Setting up dbus-x11 (1.12.28-0+deb11u1) ...
Setting up libc6-dev:arm64 (2.31-13+deb11u7) ...
Setting up xwayland (2:1.20.11-1+deb11u8) ...
Setting up firefox-esr (115.4.0esr-1~deb11u1) ...
Setting up libx11-xcb-dev:arm64 (2:1.7.2-1+deb11u2) ...
Setting up gir1.2-webkit2-4.0:arm64 (2.42.1-1~deb11u2) ...
Setting up libncurses-dev:arm64 (6.2+20201114-2+deb11u2) ...
Setting up ssh (1:8.4p1-5+deb11u2) ...
dpkg: dependency problems prevent configuration of librem5-base:
librem5-base depends on librem5-base-defaults (>= 65pureos1~byz1); however:
Package librem5-base-defaults is not configured yet.
dpkg: error processing package librem5-base (--configure):
dependency problems - leaving unconfigured
Setting up libtinfo-dev:arm64 (6.2+20201114-2+deb11u2) ...
dpkg: dependency problems prevent configuration of librem5-gnome-base:
librem5-gnome-base depends on librem5-base (>= 65pureos1~byz1); however:
Package librem5-base is not configured yet.
dpkg: error processing package librem5-gnome-base (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of librem5-gnome-phone:
librem5-gnome-phone depends on librem5-gnome-base; however:
Package librem5-gnome-base is not configured yet.
dpkg: error processing package librem5-gnome-phone (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of librem5-gnome:
librem5-gnome depends on librem5-gnome-base; however:
Package librem5-gnome-base is not configured yet.
librem5-gnome depends on librem5-gnome-phone; however:
Package librem5-gnome-phone is not configured yet.
dpkg: error processing package librem5-gnome (--configure):
dependency problems - leaving unconfigured
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for libglib2.0-0:arm64 (2.66.8-1pureos3) ...
Processing triggers for libc-bin (2.31-13+deb11u7) ...
Processing triggers for man-db (2.9.4-2) ...
Processing triggers for sgml-base (1.30) ...
Processing triggers for mailcap (3.69) ...
Processing triggers for desktop-file-utils (0.26-1) ...
Setting up phosh-plugins (0.32.0-1pureos1~byz1) ...
Processing triggers for flash-kernel (3.104pureos1) ...
Using DTB: freescale/imx8mq-librem5-r4.dtb
Installing /usr/lib/linux-image-6.4.0-1-librem5/freescale/imx8mq-librem5-r4.dtb into /boot/dtbs/6.4.0-1-librem5/freescale/imx8mq-librem5-r4.dtb
Taking backup of imx8mq-librem5-r4.dtb.
Installing new imx8mq-librem5-r4.dtb.
flash-kernel: installing version 6.4.0-1-librem5
Generating boot script u-boot image... done.
Taking backup of boot.scr.
Installing new boot.scr.
Errors were encountered while processing:
linux-image-6.4.0-1-librem5
linux-image-librem5
librem5-base-defaults
librem5-base
librem5-gnome-base
librem5-gnome-phone
librem5-gnome
E: Sub-process /usr/bin/dpkg returned an error code (1)