Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 689950 - genkernel-4.0.0_beta3 prints incorrect path to initramfs after installing the kernel
Summary: genkernel-4.0.0_beta3 prints incorrect path to initramfs after installing the...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: genkernel (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Genkernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-07-16 09:09 UTC by Mariusz Ceier
Modified: 2019-07-23 19:47 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 Mariusz Ceier 2019-07-16 09:09:32 UTC
I ran `genkernel --menuconfig --firmware all` and when it completed, it printed:

* If you require Genkernel's hardware detection features, you MUST
* tell your bootloader to use the provided initramfs file (/var/tmp/genkernel/initramfs-genkernel-x86_64-5.2.1-gentoo).

I believe that the /var/tmp/genkernel/initramfs-genkernel-x86_64-5.2.1-gentoo path is incorrect and instead should be /boot/initramfs-genkernel-x86_64-5.2.1-gentoo, also /var/tmp/genkernel/initramfs-genkernel-x86_64-5.2.1-gentoo should be removed after installation, otherwise it will be one more place to check when removing old kernels.


Reproducible: Always

Steps to Reproduce:
1. emerge '=sys-kernel/gentoo-sources-5.2.1'
2. eselect kernel set linux-5.2.1-gentoo
3. genkernel --menuconfig --firmware all

Actual Results:  
After successful installation, genkernel prints:

* If you require Genkernel's hardware detection features, you MUST
* tell your bootloader to use the provided initramfs file (/var/tmp/genkernel/initramfs-genkernel-x86_64-5.2.1-gentoo).

* WARNING... WARNING... WARNING...
* Additional kernel parameters that *may* be required to boot properly:
*
* With support for several ext* filesystems available, it may be needed to
* add "rootfstype=ext3" or "rootfstype=ext4" to the list of boot parameters.

* Do NOT report kernel bugs as genkernel bugs unless your bug
* is about the default genkernel configuration...
*
* Make sure you have the latest ~arch genkernel before reporting bugs.



Expected Results:  
Genkernel should print:

* If you require Genkernel's hardware detection features, you MUST
* tell your bootloader to use the provided initramfs file (/boot/initramfs-genkernel-x86_64-5.2.1-gentoo).

* WARNING... WARNING... WARNING...
* Additional kernel parameters that *may* be required to boot properly:
*
* With support for several ext* filesystems available, it may be needed to
* add "rootfstype=ext3" or "rootfstype=ext4" to the list of boot parameters.

* Do NOT report kernel bugs as genkernel bugs unless your bug
* is about the default genkernel configuration...
*
* Make sure you have the latest ~arch genkernel before reporting bugs.


and remove /var/tmp/genkernel/initramfs-genkernel-x86_64-5.2.1-gentoo
Comment 1 Thomas Deutschmann (RETIRED) gentoo-dev 2019-07-16 10:39:46 UTC
Confirmed. Only happens when no bootloader was used. In this case we need to use $BOOTDIR.
Comment 2 Larry the Git Cow gentoo-dev 2019-07-16 12:19:03 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=323c9f71d7d8255ac104bc1066e292e3f69c4a92

commit 323c9f71d7d8255ac104bc1066e292e3f69c4a92
Author:     Thomas Deutschmann <whissi@gentoo.org>
AuthorDate: 2019-07-16 11:29:49 +0000
Commit:     Thomas Deutschmann <whissi@gentoo.org>
CommitDate: 2019-07-16 12:15:54 +0000

    genkernel: Use $BOOTDIR in msg regarding genkernel hardware detection feature
    
    Bug: https://bugs.gentoo.org/689950
    Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>

 genkernel | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
Comment 3 Thomas Deutschmann (RETIRED) gentoo-dev 2019-07-16 18:32:18 UTC
beta4 is now available, thank you for the report.
Comment 4 Larry the Git Cow gentoo-dev 2019-07-23 19:47:13 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=84367a16cd13999842f58a48a3e66e8ed8f76507

commit 84367a16cd13999842f58a48a3e66e8ed8f76507
Author:     Thomas Deutschmann <whissi@gentoo.org>
AuthorDate: 2019-07-23 19:12:21 +0000
Commit:     Thomas Deutschmann <whissi@gentoo.org>
CommitDate: 2019-07-23 19:14:14 +0000

    genkernel: Fix initramfs location in msg regarding genkernel hardware detection feature
    
    The fix for bug 689950 was incomplete: Sometimes, $TMPDIR is correct.
    
    Fixes 323c9f71d7 ("genkernel: Use $BOOTDIR in msg regarding genkernel hardware detection feature")
    Bug: https://bugs.gentoo.org/689950
    Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>

 genkernel | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)