Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 795033

Summary: sys-apps/systemd kernelinstall can't create entry
Product: Gentoo Linux Reporter: ziyouwa <yjsss>
Component: Current packagesAssignee: Distribution Kernel Project <dist-kernel>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description ziyouwa 2021-06-09 06:57:06 UTC
I choose gentoo-kernel-bin and systemd(gnuefi USEFLAG) in my Gentoo. There was no entry directory and configuration file generation in the / boot directory after emerge gentoo-kernel-bin, even if I execute 'emerge --config gentoo-kernel-bin' manually.
----------------------------------
question 1:

in /usr/lib/kernel/install.d/,

....
if [[ -f /etc/kernel/cmdline ]]; then
            read -r -d '' -a BOOT_OPTIONS < /etc/kernel/cmdline
....

It should be ' ', not ''?
----------------------------------
question 2:
00-entry-directory.install:
...
MACHINE_ID_DIR="${ENTRY_DIR_ABS%/*}"
if ! [ -d "$MACHINE_ID_DIR" ]; then
    exit 0
fi
...
Should directory $MACHINE_ID_DIR be created instead of exiting when it don't exist?
-----------------------------------
I modified these questions and passed the self-test.
Comment 1 Georgy Yakovlev archtester gentoo-dev 2021-06-10 05:37:35 UTC
please proceed to https://bugs.gentoo.org/794646

problem is known, we are working on it.

just creating /boot/$(</etc/machine-id) directory should fix the installkernel.
this will be done automatically once fixed.

for your second question, about delimiter - no. it would stop on first space.
it's line delimiter, not work delimiter.

*** This bug has been marked as a duplicate of bug 794646 ***
Comment 2 Georgy Yakovlev archtester gentoo-dev 2021-06-10 05:38:09 UTC
s/work delimiter/word delimiter/