Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Installing Gentoo
  • Search

[SOLVED] Failed to install gentoo-kernel-bin during install

Having problems with the Gentoo Handbook? If you're still working your way through it, or just need some info before you start your install, this is the place. All other questions go elsewhere.
Post Reply
Advanced search
8 posts • Page 1 of 1
Author
Message
Mh7tiger
n00b
n00b
Posts: 24
Joined: Mon Apr 29, 2024 6:43 pm

[SOLVED] Failed to install gentoo-kernel-bin during install

  • Quote

Post by Mh7tiger » Thu Jan 02, 2025 7:18 pm

Hello,
I have problems on my Gentoo install near the initramfs part. I wanted to try out zfs for the first time on this install, so I think the error likely has something to do with that.
Here is the output of

Code: Select all

emerge --info '=sys-firmware/intel-microcode-20241112_p20241103::gentoo'
:

Code: Select all

Portage 3.0.66.1 (python 3.12.8-final-0, default/linux/amd64/23.0/desktop, gcc-14, glibc-2.40-r5, 6.6.62-gentoo-dist x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-6.6.62-gentoo-dist-x86_64-Intel-R-_Atom-TM-_x5-Z8350_CPU_@_1.44GHz-with-glibc2.40
KiB Mem:     1867872 total,    223332 free
KiB Swap:    6291452 total,   4221996 free
Timestamp of repository gentoo: Thu, 02 Jan 2025 14:00:00 +0000
Head commit of repository gentoo: 222a016638e0f63dac0bb2724cb9594abaaf0731
sh bash 5.2_p37
ld GNU ld (Gentoo 2.43 p3) 2.43.1
app-misc/pax-utils:        1.3.8::gentoo
app-shells/bash:           5.2_p37::gentoo
dev-build/autoconf:        2.72-r1::gentoo
dev-build/automake:        1.16.5-r2::gentoo
dev-build/cmake:           3.30.6::gentoo
dev-build/libtool:         2.4.7-r4::gentoo
dev-build/make:            4.4.1-r100::gentoo
dev-build/meson:           1.5.2::gentoo
dev-lang/perl:             5.40.0::gentoo
dev-lang/python:           3.12.8::gentoo, 3.13.1::gentoo
dev-lang/rust-bin:         1.82.0-r101::gentoo
llvm-core/clang:           18.1.8-r6::gentoo
llvm-core/llvm:            18.1.8-r6::gentoo, 19.1.4::gentoo
sys-apps/baselayout:       2.17::gentoo
sys-apps/openrc:           0.55.1::gentoo
sys-apps/sandbox:          2.39::gentoo
sys-devel/binutils:        2.43-r2::gentoo
sys-devel/binutils-config: 5.5.2::gentoo
sys-devel/gcc:             14.2.1_p20241221::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-kernel/linux-headers:  6.6-r1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.40-r5::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    volatile: False
    sync-rsync-verify-metamanifest: yes
    sync-rsync-extra-opts: 
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-max-age: 3

Binary Repositories:

gentoobinhost
    priority: 9999
    sync-uri: https://distfiles.gentoo.org/releases/amd64/binpackages/23.0/x86-64

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/sandbox.d"
CXXFLAGS="-march=native -O2"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-march=native -O2"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance binpkg-request-signature buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles getbinpkg ipc-sandbox merge-sync merge-wait multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=native -O2"
GENTOO_MIRRORS="rsync://mirror.kumi.systems/gentoo/     rsync://mirror.it4i.cz/gentoo     rsync://ftp.fi.muni.cz/pub/linux/gentoo/     rsync://mirror.dkm.cz/gentoo/     ftp://gentoo.mirror.web4u.cz/     rsync://mirror.init7.net/gentoo/"
LANG="cs_CZ.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs"
LEX="flex"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
RUSTFLAGS=" -C target-cpu=atom"
SHELL="/bin/bash"
USE="X a52 aac acl acpi alsa amd64 bluetooth branding bzip2 cairo cdda cdr cet crypt cups dbus dist-kernel dri dts dvd dvdr elogind encode exif flac gdbm gif gpm gtk gui iconv icu ipv6 jpeg kf6compat lcms libnotify libtirpc mad mng mp3 mp4 mpeg multilib ncurses nls ogg opengl openmp pam pango pcre pdf png policykit ppds qml qt5 qt6 readline sdl seccomp sound spell ssl startup-notification svg test-rust tiff truetype udev udisks unicode upower usb vorbis vulkan wayland wxwidgets x264 xattr xcb xft xml xv xvid zlib" ABI_X86="64" ADA_TARGET="gcc_13" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 aes pclmul popcnt rdrand sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GUILE_SINGLE_TARGET="3-0" GUILE_TARGETS="3-0" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-2" POSTGRES_TARGETS="postgres16" PYTHON_SINGLE_TARGET="python3_12" PYTHON_TARGETS="python3_12" RUBY_TARGETS="ruby32" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, MAKEOPTS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, SIZE, STRINGS, STRIP, YACC, YFLAGS

=================================================================
                        Package Settings
=================================================================

sys-firmware/intel-microcode-20241112_p20241103::gentoo was built with the following:
USE="dist-kernel initramfs split-ucode -hostonly -vanilla" ABI_X86="(64)"
Output of

Code: Select all

emerge -pqv '=sys-firmware/intel-microcode-20241112_p20241103::gentoo'
:

Code: Select all

[ebuild   R   ] sys-firmware/intel-microcode-20241112_p20241103  USE="dist-kernel initramfs split-ucode -hostonly -vanilla" 

 * IMPORTANT: 20 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.
The (partial) build log:
https://paste.mozilla.org/2jiQyExi

Thank you for your help.:)
Last edited by Mh7tiger on Sun Jan 05, 2025 9:16 pm, edited 1 time in total.
Top
zen_desu
Guru
Guru
Posts: 501
Joined: Fri Oct 25, 2024 3:14 pm
Location: your area

  • Quote

Post by zen_desu » Thu Jan 02, 2025 10:15 pm

It looks like it may be an issue with your uefi-mkconfig config:

Code: Select all

Running /usr/lib/kernel/postinst.d/95-efistub-uefi-mkconfig.install 6.6.67-gentoo-dist /efi/EFI/Gentoo/vmlinuz-6.6.67-gentoo-dist.efi...

* Updating UEFI configuration...
* Running uefi-mkconfig...
* lsblk can't see PARTTYPE!
* For more information please refer to https://github.com/Biosias/uefi-mkconfig
* uefi-mkconfig failed
*
* The kernel was not deployed successfully. Inspect the failure
* in the logs above and once you resolve the problems please
* run the equivalent of the following command to try again:
µgRD dev
Wiki writer
Top
Mh7tiger
n00b
n00b
Posts: 24
Joined: Mon Apr 29, 2024 6:43 pm

  • Quote

Post by Mh7tiger » Fri Jan 03, 2025 6:26 am

zen_desu wrote:It looks like it may be an issue with your uefi-mkconfig config:

Code: Select all

Running /usr/lib/kernel/postinst.d/95-efistub-uefi-mkconfig.install 6.6.67-gentoo-dist /efi/EFI/Gentoo/vmlinuz-6.6.67-gentoo-dist.efi...

* Updating UEFI configuration...
* Running uefi-mkconfig...
* lsblk can't see PARTTYPE!
* For more information please refer to https://github.com/Biosias/uefi-mkconfig
* uefi-mkconfig failed
*
* The kernel was not deployed successfully. Inspect the failure
* in the logs above and once you resolve the problems please
* run the equivalent of the following command to try again:
Yes I think so, please what should I do?

Code: Select all

emerge --config '=sys-kernel/gentoo-kernel-bin-6.6.67:6.6.67'
did not help.
Top
FilthyPitDog
Apprentice
Apprentice
User avatar
Posts: 207
Joined: Tue Jan 12, 2021 8:47 am
Location: South Pacific
Contact:
Contact FilthyPitDog
Website

  • Quote

Post by FilthyPitDog » Fri Jan 03, 2025 6:39 am

what does this output show?

Code: Select all

lsblk -o +PARTTYPE,PARTTYPENAME
Gentoo is a way of life...
Top
Kaidezee
n00b
n00b
User avatar
Posts: 29
Joined: Wed Dec 25, 2024 6:04 pm
Location: 25.3 N 91.7 E

  • Quote

Post by Kaidezee » Fri Jan 03, 2025 6:53 am

Have a look at troubleshooting section of readme https://github.com/Biosias/uefi-mkconfig.
1. chroot problems
Sometimes when running uefi-mkconfig from within a chroot, lsblk can cause problems resulting in uefi-mkconfig to not work. (For example when installing Gentoo Linux.) If this happens, make sure that /run is mounted correctly into the chroot. If the problem persits even after mounting /run, exit the chroot, copy configuration from rootfs of the system being installed to the mount point of the LiveCD and run uefi-mkconfig again outside of the chroot. Be sure to have the EFI partition mounted.
It's literally what it tells you to do, BTW.
Top
Mh7tiger
n00b
n00b
Posts: 24
Joined: Mon Apr 29, 2024 6:43 pm

  • Quote

Post by Mh7tiger » Fri Jan 03, 2025 11:29 am

FilthyPitDog wrote:what does this output show?

Code: Select all

lsblk -o +PARTTYPE,PARTTYPENAME
Sorry for the delay, it shows this:

Code: Select all

NAME MAJ:MIN RM  SIZE RO TYPE MOUNTPOINTS PARTTYPE PARTTYPENAME
loop0
       7:0    0  3,5G  1 loop                      
sda    8:0    1 14,4G  0 disk                      
├─sda1
│      8:1    1  254K  0 part                      
├─sda2
│      8:2    1  2,8M  0 part                      
├─sda3
│      8:3    1  3,6G  0 part                      
└─sda4
       8:4    1  300K  0 part                      
mmcblk0
│    179:0    0 58,2G  0 disk                      
├─mmcblk0p1
│    179:1    0    1G  0 part /efi                 
│                             /efi                 
├─mmcblk0p2
│    179:2    0    6G  0 part [SWAP]               
└─mmcblk0p3
     179:3    0 51,2G  0 part                      
mmcblk0boot0
     179:8    0    4M  1 disk                      
mmcblk0boot1
     179:16   0    4M  1 disk  
Top
Nowa
Developer
Developer
User avatar
Posts: 522
Joined: Wed Jun 25, 2014 7:07 am
Location: Hilversum

  • Quote

Post by Nowa » Fri Jan 03, 2025 11:31 am

See the previous reply by Kaidezee. Your chroot'ing is not correct/complete and therefore lsblk cannot see all information required to make uefi-mkconfig work.
OS: Gentoo 6.19.3-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
Top
Mh7tiger
n00b
n00b
Posts: 24
Joined: Mon Apr 29, 2024 6:43 pm

  • Quote

Post by Mh7tiger » Sat Jan 04, 2025 4:09 pm

Nowa wrote:See the previous reply by Kaidezee. Your chroot'ing is not correct/complete and therefore lsblk cannot see all information required to make uefi-mkconfig work.
You are right, my mistake was using arch-chroot instead of classic chroot, thank you very much. But now I've run into another problem: at the end of the ZFS/rootfs guide, I tried exporting the pool, but no matter what I try, it outputs this:

Code: Select all

cannot export 'tank': pool is busy

Code: Select all

mount -t zfs
does not return anything, so it does not look like it's even mounted. Please what do I do now? After restarting from this point, I could not boot correctly (and had to redo the installation up to this point), so I suppose this step is critical.

Code: Select all

lsof | grep tank
returns

Code: Select all

lsof: WARNING: can't stat() fuse.portal file system /run/user/1000/doc
      Output information may be incomplete.
.
Top
Post Reply

8 posts • Page 1 of 1

Return to “Installing Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic