Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 765037 - mount-boot eclass fails to exit in pkg_pretend (kernel-install eclass issue)
Summary: mount-boot eclass fails to exit in pkg_pretend (kernel-install eclass issue)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Michał Górny
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-01-12 00:44 UTC by Matthew Thode ( prometheanfire )
Modified: 2021-01-16 17:25 UTC (History)
0 users

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 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2021-01-12 00:44:06 UTC
* Your boot partition is not mounted at /boot.
 * Please mount it and retry.
 * ERROR: sys-kernel/gentoo-kernel-5.10.6::gentoo failed (postinst phase):
 *   /boot not mounted

kernel-install_pkg_postinst calls mount-boot_pkg_preinst when it should probably call it in kernel-install_pkg_preinst (which was stubbed out).

Reproducible: Always

Steps to Reproduce:
1. don't have /boot mounted
2. emerge gentoo-kernel
3. wait
4. wait for fail after kernel is merged, I think you need the initramfs useflag set.
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2021-01-12 10:52:47 UTC
Actually, I think this is how it should work and we should just improve the messages.

The package is already installed to the system at this point, and only postinst fails.  You should be able to run:

  emerge --config gentoo-kernel

to finish the postinst.

Could you confirm that this works as expected?  If so, I'll just add a better message.
Comment 2 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2021-01-12 16:21:24 UTC
I can confirm that if boot is mounted, initramfs and kernel are installed.  For some reason I thought it was just the initramfs.  I saw the patches on the ML, seems good to me.
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2021-01-16 17:25:22 UTC
Patches committed.  Now you should be getting a nice explanatory message.