Hi. Emerging vanilla-kernel-5.4.5 and having not enough space left on the boot device unexpectedly completes without an error. $ zcat /var/log/portage/sys-kernel:vanilla-kernel-5.4.5:20191221-234258.log.gz ... dracut: *** Creating initramfs image file '/usr/src/linux-5.4.5/initrd' done *** [ ok ] * Installing the kernel via installkernel ... cat: write error: No space left on device [ ok ] $ df /boot Filesystem Size Used Avail Use% Mounted on /dev/nvme0n1p2 126M 59M 65M 48% /boot The combined size of files /boot/initrd-5.4.5, /boot/vmlinuz-5.4.5 and /boot/System.map-5.4.5 is greater than the 65 MB currently available on the device.
It's poor scripting inherited from Debian. I'll take a look into adding proper error handling today. However, failing in postinst is debatable, so I'm not sure if I should add 'die' there or just a BIG FAT WARNING.
(In reply to Michał Górny from comment #1) > It's poor scripting inherited from Debian. I'll take a look into adding > proper error handling today. > > However, failing in postinst is debatable, so I'm not sure if I should add > 'die' there or just a BIG FAT WARNING. Some notes/thoughts: - Even a big warning might get overlooked if the user is emerging many packages at one time. - Files in boot such as /boot/vmlinuz-5.4.5 aren't listed in "qlist vanilla-kernel | grep vmlinuz", which is unexpected in my opinion.
Actually, I was wrong. The script is using 'set -e', and I'm using eend wrong.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4d5aa2d2dfed50fc9af57ac587bb851ee5c8540b commit 4d5aa2d2dfed50fc9af57ac587bb851ee5c8540b Author: Michał Górny <mgorny@gentoo.org> AuthorDate: 2019-12-22 08:10:22 +0000 Commit: Michał Górny <mgorny@gentoo.org> CommitDate: 2019-12-22 08:21:09 +0000 sys-kernel/vanilla-kernel: [QA] Fix missing eend arg Closes: https://bugs.gentoo.org/703512 Signed-off-by: Michał Górny <mgorny@gentoo.org> sys-kernel/vanilla-kernel/vanilla-kernel-5.4.2.ebuild | 4 ++-- sys-kernel/vanilla-kernel/vanilla-kernel-5.4.3.ebuild | 4 ++-- sys-kernel/vanilla-kernel/vanilla-kernel-5.4.5.ebuild | 6 +++--- sys-kernel/vanilla-kernel/vanilla-kernel-5.4.6.ebuild | 10 +++------- 4 files changed, 10 insertions(+), 14 deletions(-)