Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 703512 - sys-kernel/vanilla-kernel: install succeeds despite no space left on boot device
Summary: sys-kernel/vanilla-kernel: install succeeds despite no space left on boot device
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Michał Górny
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-12-22 00:05 UTC by Jan Ziak (atomsymbol)
Modified: 2019-12-22 08:28 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Ziak (atomsymbol) 2019-12-22 00:05:27 UTC
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.
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2019-12-22 07:28:14 UTC
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.
Comment 2 Jan Ziak (atomsymbol) 2019-12-22 07:47:15 UTC
(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.
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2019-12-22 07:57:34 UTC
Actually, I was wrong.  The script is using 'set -e', and I'm using eend wrong.
Comment 4 Larry the Git Cow gentoo-dev 2019-12-22 08:28:52 UTC
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(-)