Control: clone -1 -2
Control: reassign -2 src:linux
Control: retitle -2 linux-*: Provide information about /boot space usage Control: seveirty -2 wishlist
On Wed, Oct 16, 2024 at 07:49:05AM GMT, Paul Gevers wrote:
Package: apt
Version: 2.9.8
Severity: normal
Hi,
I think I just spotted a new feature of apt (thanks for the continuous improvements): reporting and protection of /boot. However, I think it was
far off and hence prevented me from upgrading without looking into it.
Story is that some time ago, my /boot was too small (it came with Debian's default) for upgrades of the kernel, and I was advised on IRC to configure something regarding modules (IIRC something like: as-needed) which drastically reduced the used size in /boot to the extend I haven't had to worry about it anymore. Today it was different.
Starting point:
paul@mulciber ~ $ sudo apt full-upgrade --update
...
Installing dependencies:
linux-doc-6.11 linux-image-6.11.2-amd64
I would assume that this is the culprit, the calculation is
size of (linux-image-6.11.2-amd64) + ( largest initrd + largest map ) * 1.1
It seems Debian kernels include modules in their image package, causing
the modules to be counted. An Ubuntu kernel image (which I tested this
against) meanwhile is true to the name and only contains the kernel image
(the modules are in linux-modules-$(uname -r)).
What are our ways out here?
* Split modules out of linux-image into linux-modules
* Add a new Boot-Size: field indicating the size of files in /boot
* Change the estimate to use the largest kernel size. This is much more
unreliable.
We also need to have a look at packages triggering initrd generation: Technically you need space for one additional initrd in /boot as the
new file is being written before the old one is deleted. :(
--
debian developer - deb.li/jak | jak-linux.org - free software dev
ubuntu core developer i speak de, en
-----BEGIN PGP SIGNATURE-----
iQIzBAABCgAdFiEET7WIqEwt3nmnTHeHb6RY3R2wP3EFAmcPoRYACgkQb6RY3R2w P3Gxtw/+PS6NlqaixZSPIAlV5ufBG2Qamw4O3ODeHRFmLt8xGzWXCeNUdYtzO0Z6 hLmMNrgiWID2lnyhVMQyBbe39hsMK8q/wCH4oUUbSXmP4rb7PpFCQZ7JP7CkmQ0R sEtlBypsLa9kcCcKL/aH1/cS4V6teg+jOHVi1AzY9jamfmUm7G/3Mtc48JU9U9Ro A0QlCjBeRF2ypZ/iQdcRSNndA+lM2N82wug3tKUz0w718sszfh0g4ejGsN3kAwY3 Lbo36Y3jGfS9DfHAkSuI20dmCGG7wpTjV8s3QKU+Icgevqj2bjRCXY5/39p1zK4x iFq6Q7s7xqVsVPQaWC3oCcjUdGOxbetsNemvQyawQ7zm0r74nKNeziWPFqYMXnei naG2B9Y8sXjd/Orv+hgxWN8k7kw+qeHiiV00blG6idCxFi2qYUN3slObluGsvpNt yHTFSJCR6qhKGVw2oyhuSlU27MmU0+AdUkiOG6W80shRMrtTbsMH6FlnijspjO/G RFPyPNc3GrAUNuv6XqKoH8N5d2dwhL5LbQABIknvQcz5SSzqBr3U5ZYQx2ofm4qj xQg+1g9ylbKvO2bT9uTsn+/XFh7qo7tqIRNgeuolHTKg9vspO59eRtHWAMjT9WMS DDyWaEZUXKEInnolUvPzQK4EFFxHHbrg42QoLyRpctAbMpegh48=
=S0FE
-----END PGP SIGNATURE-----
--- SoupGate-Win32 v1.05
* Ori