Your message dated Thu, 06 Jul 2023 00:07:55 +0000
with message-id <e1qhcxl-00bqbc...@fasolo.debian.org>
and subject line Bug#1032186: fixed in raspi-firmware 1.20230405+ds-1
has caused the Debian Bug report #1032186,
regarding raspi-firmware: Can make removing a kernel image fail and causing
"apt upgrade" to fail early, too
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)
--
1032186: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1032186
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: raspi-firmware
Severity: serious
Tags: patch
Hi,
if /boot/firmware is (nearly) full, raspi-firmware prevents (!)
uninstalling a kernel image, because it still insists on copying stuff
to /boot/firmware upon kernel image removal.
An additional condition might be that another kernel image is present
and not fully configured for the same reason (not enough
diskspace). It's unlcear for me, if this additional condition is
required for this issue to reproduce.
In general you can run into such an issue within months if you have
automatic updates enabled and don't clear up old kernels
automatically. (And yes, in my case the VFAT partition is rather small
as this is a very old installation.
# df -h /boot/firmware/
Filesystem Size Used Avail Use% Mounted on
/dev/mmcblk0p1 121M 121M 2.0K 100% /boot/firmware
# dpkg --purge linux-image-6.1.0-1-armmp-lpae
(Reading database ... 350731 files and directories currently installed.)
Removing linux-image-6.1.0-1-armmp-lpae (6.1.4-1) ...
/etc/kernel/postrm.d/initramfs-tools:
update-initramfs: Deleting /boot/initrd.img-6.1.0-1-armmp-lpae
/etc/kernel/postrm.d/z50-raspi-firmware:
cp: error writing '/boot/firmware/vmlinuz-6.1.0-2-armmp-lpae': No space left
on device
run-parts: /etc/kernel/postrm.d/z50-raspi-firmware exited with return code 1
dpkg: error processing package linux-image-6.1.0-1-armmp-lpae (--purge):
installed linux-image-6.1.0-1-armmp-lpae package post-removal script
subprocess returned error exit status 1
Errors were encountered while processing:
linux-image-6.1.0-1-armmp-lpae
# ls -l /boot/firmware/{initrd.img,vmlinuz}-*
-rwxr-xr-x 1 root root 25319457 Oct 13 08:32
/boot/firmware/initrd.img-5.19.0-2-armmp-lpae
-rwxr-xr-x 1 root root 25268327 Dec 7 08:29
/boot/firmware/initrd.img-6.0.0-5-armmp-lpae
-rwxr-xr-x 1 root root 25266000 Jan 18 08:21
/boot/firmware/initrd.img-6.0.0-6-armmp-lpae
-rwxr-xr-x 1 root root 5210624 Oct 24 00:52
/boot/firmware/vmlinuz-5.19.0-2-armmp-lpae
-rwxr-xr-x 1 root root 5267968 Dec 7 08:29
/boot/firmware/vmlinuz-6.0.0-5-armmp-lpae
-rwxr-xr-x 1 root root 5267968 Dec 27 08:05
/boot/firmware/vmlinuz-6.0.0-6-armmp-lpae
-rwxr-xr-x 1 root root 5370368 Jan 18 08:21
/boot/firmware/vmlinuz-6.1.0-1-armmp-lpae
-rwxr-xr-x 1 root root 3817472 Mar 1 05:31
/boot/firmware/vmlinuz-6.1.0-2-armmp-lpae
# dpkg --audit
The following packages have been unpacked but not yet configured.
They must be configured using dpkg --configure or the configure
menu option in dselect for them to work:
linux-headers-armmp-lpae Header files for Linux armmp-lpae configuration
(meta
linux-image-armmp-lpae Linux for ARMv7 multiplatform compatible SoCs
supportin
The following packages are only half configured, probably due to problems
configuring them the first time. The configuration should be retried using
dpkg --configure <package> or the configure menu option in dselect:
initramfs-tools generic modular initramfs generator (automation)
linux-headers-6.1.0-2-armmp-lpae Header files for Linux 6.1.0-2-armmp-lpae
linux-image-6.1.0-2-armmp-lpae Linux 6.1 for ARMv7 multiplatform compatible
So
raspi-firmware Raspberry Pi family GPU firmware and bootloaders
The following packages are only half installed, due to problems during
installation. The installation can probably be completed by retrying it;
the packages can be removed using dselect or dpkg --remove:
linux-image-6.1.0-1-armmp-lpae Linux 6.1 for ARMv7 multiplatform compatible
So
In the end, this also causes apt to abort rather early and not upgrade
or install anything anymore since then. This is also the reason why only
outdated kernel are (partially) installed.
So please stop copying stuff to /boot/firmware on kernel image removal
or purging. There will be an occasion for that at a later time anyway.
A patch (without the proper indentation probably wanted for readability)
which seems to have helped for me:
diff --git a/kernel/postinst.d/z50-raspi-firmware
b/kernel/postinst.d/z50-raspi-firmware
index 1d3ae16..d898847 100755
--- a/kernel/postinst.d/z50-raspi-firmware
+++ b/kernel/postinst.d/z50-raspi-firmware
@@ -115,6 +115,7 @@ else
dtb_path="/usr/lib/linux-image-${latest_kernel#/boot/vmlinuz-}"
fi
+if [ "$1" != "remove" ]; then
if [ "$KERNEL" = "auto" ] ; then
for dtb in "${dtb_path}"/bcm*.dtb; do
[ -e "${dtb}" ] || continue
@@ -128,6 +129,7 @@ if [ "$KERNEL" = "auto" ] ; then
cp "$latest_kernel" /boot/firmware/
cp "$latest_initrd" /boot/firmware/
fi
+fi
-- System Information:
Debian Release: bookworm/sid
APT prefers unstable
APT policy: (990, 'unstable'), (600, 'testing'), (500, 'unstable-debug'),
(500, 'buildd-unstable'), (110, 'experimental'), (1, 'experimental-debug'), (1,
'buildd-experimental')
merged-usr: no
Architecture: armhf
Kernel: Linux 6.0.0-5-armmp-lpae (SMP)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)
LSM: AppArmor: enabled
--- End Message ---
--- Begin Message ---
Source: raspi-firmware
Source-Version: 1.20230405+ds-1
Done: Gunnar Wolf <gw...@debian.org>
We believe that the bug you reported is fixed in the latest version of
raspi-firmware, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 1032...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Gunnar Wolf <gw...@debian.org> (supplier of updated raspi-firmware package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Format: 1.8
Date: Wed, 05 Jul 2023 13:17:20 -0600
Source: raspi-firmware
Architecture: source
Version: 1.20230405+ds-1
Distribution: unstable
Urgency: medium
Maintainer: pkg-raspi <pkg-raspi-maintain...@lists.alioth.debian.org>
Changed-By: Gunnar Wolf <gw...@debian.org>
Closes: 1032186
Changes:
raspi-firmware (1.20230405+ds-1) unstable; urgency=medium
.
* New upstream version
* Fixed typo in brcm_firmware patch (not-needd → not-needed)
* Don't copy files to /boot/firmware on remove (Closes: #1032186)
* Updated standards-version 4.6.0→4.6.2 (no changes)
* Updated Lintian overrides
Checksums-Sha1:
cafea864309eb6094932ccd88769653949c8a483 1536
raspi-firmware_1.20230405+ds-1.dsc
f0a864a5d952ab2386a0cc030b9615e1ba8abe0c 4530196
raspi-firmware_1.20230405+ds.orig.tar.xz
cf6d4c84e0e74cb51b6fb82ccd1aa62b20cc4eba 379172
raspi-firmware_1.20230405+ds-1.debian.tar.xz
40c070d60af671c1e36cc30e7282dd6898be5530 7759
raspi-firmware_1.20230405+ds-1_source.buildinfo
Checksums-Sha256:
2f191811d447ba58fff02944c625293b7091301c4ca65f550c0972a377dead87 1536
raspi-firmware_1.20230405+ds-1.dsc
f2177194c832061b41f785daeb788cf0f57c99ae9575a0b92b7223795184bf9f 4530196
raspi-firmware_1.20230405+ds.orig.tar.xz
68945381fceec77089ada8457159ead9b859bc3bf361a45c1aef66b17bada74c 379172
raspi-firmware_1.20230405+ds-1.debian.tar.xz
e4aa8712f17914ce0a2844f0aea732d8f520650eee8873d8e0730bf292a2e2d4 7759
raspi-firmware_1.20230405+ds-1_source.buildinfo
Files:
9f86d991930208258d6ce59cd29307a4 1536 non-free-firmware/misc optional
raspi-firmware_1.20230405+ds-1.dsc
ef825c30bba980ae00f761f54d7cd67a 4530196 non-free-firmware/misc optional
raspi-firmware_1.20230405+ds.orig.tar.xz
a94750dcd4ca8fb1fc65744608b1d013 379172 non-free-firmware/misc optional
raspi-firmware_1.20230405+ds-1.debian.tar.xz
db6f60d2f70774b505caae358b49a016 7759 non-free-firmware/misc optional
raspi-firmware_1.20230405+ds-1_source.buildinfo
-----BEGIN PGP SIGNATURE-----
iHUEARYIAB0WIQRNFAUGU6QC1zaHBJ0kBMlUbhRTYAUCZKX/UwAKCRAkBMlUbhRT
YAqqAP9367oDI5/jTL03HyUhhI3CNHn0d6xtjlyKZ8wdXFt7CQD/Z6fQK9PDJzDv
XK6WpOgO6oMYpIH6dvU+KMCphDJmJQ0=
=WmXL
-----END PGP SIGNATURE-----
--- End Message ---