Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Issues with efi stub and distribution kernel
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
juliedeville
n00b
n00b


Joined: 14 Oct 2024
Posts: 33

PostPosted: Wed Oct 23, 2024 9:17 pm    Post subject: Issues with efi stub and distribution kernel Reply with quote

I am on my second build, and this time I am installing gentoo on an ssd that will go in another machine, so I decided to go with a distribution kernel. I am also using an efit stub instead of grub this time, so I followed the instructions from this section of the gentoo handbook https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/Kernel#EFI_stub and added all of the necessary options to package.accept_keywords and package.use. I also added ugrd as a USE flag for installkernel, as I am using ugrd to generate the initramfs.

Next, I moved on to the distribution kernels section. I did not do either of the optional steps prior to the the 'Installing' portion, because I plan to setup secure boot later. I ran
Code:
emerge --ask sys-kernel/gentoo-kernel-bin


Code:
These are the packages that would be merged, in order:

Calculating dependencies... done!
Dependency resolution took 8.31 s (backtrack: 0/20).

[ebuild  N    ~] sys-boot/uefi-mkconfig-2.3
[ebuild  N     ] sys-kernel/installkernel-48-r1  USE="efistub ugrd -dracut -grub -refind -systemd -systemd-boot -uki -ukify"
[ebuild  N     ] sys-kernel/gentoo-kernel-bin-6.6.51  USE="initramfs (-generic-uki) -modules-compress -test"
[ebuild  N     ] virtual/dist-kernel-6.6.51

Would you like to merge these packages? [Yes/No] Yes

>>> Verifying ebuild manifests

>>> Running pre-merge checks for sys-kernel/gentoo-kernel-bin-6.6.51
 * Assuming you do not have a separate /boot partition.
 * Assuming you do not have a separate /efi partition.
 * Assuming you do not have a separate /boot/efi partition.
 * Assuming you do not have a separate /boot/EFI partition.

>>> Emerging (1 of 4) sys-boot/uefi-mkconfig-2.3::gentoo
 * uefi-mkconfig-2.3.tar.gz BLAKE2B SHA512 size ;-) ...                                                               [ ok ]
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Could not find a Makefile in the kernel source directory.
 * Please ensure that /usr/src/linux points to a complete set of Linux sources
 * Unable to calculate Linux Kernel version for build, attempting to use running version
 * Could not find a neither a usable .config in the kernel source directory
 * nor a /proc/config.gz file,
 * Please ensure that /usr/src/linux points to a configured set of Linux sources.
 * If you are using KBUILD_OUTPUT, please set the environment var so that
 * it points to the necessary object directory so that it might find .config
 * or have a properly configured kernel to produce a config.gz file. (CONFIG_IKCONFIG).
 * ERROR: sys-boot/uefi-mkconfig-2.3::gentoo failed (setup phase):
 *   Kernel not configured; no .config found in  or /proc/config.gz found
 *
 * Call stack:
 *           ebuild.sh, line  136:  Called pkg_setup
 *           ebuild.sh, line  374:  Called linux-info_pkg_setup
 *   linux-info.eclass, line 1005:  Called check_extra_config
 *   linux-info.eclass, line  824:  Called die
 * The specific snippet of code:
 *              die "Kernel not configured; no .config found in ${KV_OUT_DIR} or /proc/config.gz found"
 *
 * If you need support, post the output of `emerge --info '=sys-boot/uefi-mkconfig-2.3::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sys-boot/uefi-mkconfig-2.3::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/sys-boot/uefi-mkconfig-2.3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-boot/uefi-mkconfig-2.3/temp/die.env'.
 * Working directory: '/var/tmp/portage/sys-boot/uefi-mkconfig-2.3/empty'
 * S: '/var/tmp/portage/sys-boot/uefi-mkconfig-2.3/work/uefi-mkconfig-2.3'

>>> Failed to emerge sys-boot/uefi-mkconfig-2.3, Log file:

>>>  '/var/tmp/portage/sys-boot/uefi-mkconfig-2.3/temp/build.log'

 * Messages for package sys-boot/uefi-mkconfig-2.3:

 * Could not find a Makefile in the kernel source directory.
 * Please ensure that /usr/src/linux points to a complete set of Linux sources
 * Unable to calculate Linux Kernel version for build, attempting to use running version
 * Could not find a neither a usable .config in the kernel source directory
 * nor a /proc/config.gz file,
 * Please ensure that /usr/src/linux points to a configured set of Linux sources.
 * If you are using KBUILD_OUTPUT, please set the environment var so that
 * it points to the necessary object directory so that it might find .config
 * or have a properly configured kernel to produce a config.gz file. (CONFIG_IKCONFIG).
 * ERROR: sys-boot/uefi-mkconfig-2.3::gentoo failed (setup phase):
 *   Kernel not configured; no .config found in  or /proc/config.gz found
 *
 * Call stack:
 *           ebuild.sh, line  136:  Called pkg_setup
 *           ebuild.sh, line  374:  Called linux-info_pkg_setup
 *   linux-info.eclass, line 1005:  Called check_extra_config
 *   linux-info.eclass, line  824:  Called die
 * The specific snippet of code:
 *              die "Kernel not configured; no .config found in ${KV_OUT_DIR} or /proc/config.gz found"
 *
 * If you need support, post the output of `emerge --info '=sys-boot/uefi-mkconfig-2.3::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sys-boot/uefi-mkconfig-2.3::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/sys-boot/uefi-mkconfig-2.3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-boot/uefi-mkconfig-2.3/temp/die.env'.
 * Working directory: '/var/tmp/portage/sys-boot/uefi-mkconfig-2.3/empty'
 * S: '/var/tmp/portage/sys-boot/uefi-mkconfig-2.3/work/uefi-mkconfig-2.3'
[ERROR] Task was destroyed but it is pending!
task: <Task pending name='Task-99' coro=<ForkProcess._main() running at /usr/lib/python3.12/site-packages/portage/util/_async
/ForkProcess.py:197> wait_for=<Future pending cb=[AsynchronousTask.async_wait.<locals>.<lambda>() at /usr/lib/python3.12/site
-packages/_emerge/AsynchronousTask.py:49, Task.task_wakeup()]> cb=[SpawnProcess._main_exit()]>
[ERROR] Task was destroyed but it is pending!
task: <Task pending name='Task-98' coro=<PipeLogger._io_loop() running at /usr/lib/python3.12/site-packages/portage/util/_asy
nc/PipeLogger.py:97> wait_for=<Future pending cb=[Task.task_wakeup()]> cb=[PipeLogger._io_loop_done()]>
[ERROR] Task was destroyed but it is pending!
task: <Task pending name='Task-97' coro=<BuildLogger._main() running at /usr/lib/python3.12/site-packages/portage/util/_async
/BuildLogger.py:134> wait_for=<Future pending cb=[AsynchronousTask.async_wait.<locals>.<lambda>() at /usr/lib/python3.12/site
-packages/_emerge/AsynchronousTask.py:49, Task.task_wakeup()]> cb=[BuildLogger._main_exit()]>
[ERROR] Task was destroyed but it is pending!
task: <Task pending name='Task-96' coro=<PipeLogger._io_loop() running at /usr/lib/python3.12/site-packages/portage/util/_asy
nc/PipeLogger.py:97> wait_for=<Future finished result=None> cb=[PipeLogger._io_loop_done()]>


Not sure if I missed a step or am misreading, any help is appreciated.
Back to top
View user's profile Send private message
Nowa
Developer
Developer


Joined: 25 Jun 2014
Posts: 429
Location: Nijmegen

PostPosted: Thu Oct 24, 2024 2:50 pm    Post subject: Reply with quote

I think /proc is not mounted into your chroot. But anyway these checks should be non-fatal, the problem is that the ebuild is checking if your kernel supports efi stub booting, but the kernel has not been installed yet.

I'll fix it now, please re-sync in ~30-60 minutes and then retry.
_________________
OS: Gentoo 6.10.12-gentoo-dist, ~amd64, 23.0/desktop/plasma/systemd
MB: MSI Z370-A PRO
CPU: Intel Core i9-9900KS
GPU: Intel Arc A770 16GB & Intel UHD Graphics 630
SSD: Samsung 970 EVO Plus 2 TB
RAM: Crucial Ballistix 32GB DDR4-2400
Back to top
View user's profile Send private message
juliedeville
n00b
n00b


Joined: 14 Oct 2024
Posts: 33

PostPosted: Thu Oct 24, 2024 3:05 pm    Post subject: Reply with quote

Thanks! I checked the github for uefi-mkconfig, and it seems it was a matter of not having /run mounted.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum