Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 714072 - sys-kernel/genkernel-4.0.4: fails if boot is not in a different partition
Summary: sys-kernel/genkernel-4.0.4: fails if boot is not in a different partition
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal major
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-03-23 14:19 UTC by mimosinnet
Modified: 2020-03-23 14:27 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 mimosinnet 2020-03-23 14:19:37 UTC
In case that /boot is not in a different partition, genkernel fails with the message:

ERROR: Boot partition is not mounted on '/boot' and I am not allowed to mount due to set --no-mountboot option!

This behaviour appeared after upgrading genkernel from sys-kernel/genkernel-3.5.3.3 to sys-kernel/genkernel-4.0.4. This occurs when using genkernel in a chroot environment. 

The behaviour may be caused the function "make_bootdir_writable" in the file "gen_funcs.sh" [1]. The function checks /proc/mounts for the 'boot' partition. 

If /boot is not in a separate partition, the function fails with the above message. The kernel correctly installs in '/boot' when bypassing the function check. 


[1] https://gitweb.gentoo.org/proj/genkernel.git/tree/gen_funcs.sh
Comment 1 mimosinnet 2020-03-23 14:27:38 UTC
The bug fixes if there is no reference to /boot in /etc/fstab. 

I was using the default /etc/fstab, that has a reference to /boot. Deleting the line solves the problem. ::ooops::