Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 831346 - sys-kernel/installkernel-4: in sandboxed environment: grub-probe: error: failed to get canonical path of /dev/nvme0n1p4.
Summary: sys-kernel/installkernel-4: in sandboxed environment: grub-probe: error: fail...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Distribution Kernel Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-01-17 10:12 UTC by Toralf Förster
Modified: 2024-04-07 20:04 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,19.36 KB, text/plain)
2022-01-17 10:12 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,285.67 KB, text/plain)
2022-01-17 10:12 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,28.67 KB, application/x-bzip)
2022-01-17 10:12 UTC, Toralf Förster
Details
sys-kernel:gentoo-kernel-bin-5.15.15:20220117-093332.log.bz2 (sys-kernel:gentoo-kernel-bin-5.15.15:20220117-093332.log.bz2,143.80 KB, application/x-bzip)
2022-01-17 10:12 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2022-01-17 10:12:23 UTC
 * Assuming you do not have a separate /boot partition.
 * Installing the kernel via installkernel ...
run-parts: executing /etc/kernel/postinst.d/91-grub-mkconfig.install 5.15.15-gentoo-dist /boot/vmlinuz-5.15.15-gentoo-dist
Generating new grub config as /boot/grub/grub.cfg
/usr/sbin/grub-probe: error: failed to get canonical path of `/dev/nvme0n1p4'.
Failed to generate grub config
run-parts: /etc/kernel/postinst.d/91-grub-mkconfig.install exited with return code 1

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_plasma-j4-20220113-070005

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-9.3.1
 [2] x86_64-pc-linux-gnu-11.2.1 *
clang/llvm (if any):
clang version 13.0.0
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/13/bin
/usr/lib/llvm/13
13.0.0
Python 3.9.10
Available Ruby profiles:
  [1]   ruby26 (with Rubygems)
  [2]   ruby27 (with Rubygems)
  [3]   ruby30 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.58.0 *
The following VMs are available for generation-2:
*)	AdoptOpenJDK 11.0.13_p8 [openjdk-bin-11]
2)	AdoptOpenJDK 8.312_p07 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-11  system-vm

The Glorious Glasgow Haskell Compilation System, version 8.10.4
php cli:
  [1]   php7.3
  [2]   php7.4
  [3]   php8.1 *

  HEAD of ::gentoo
commit 8b80a8049804f3c0186ee7fb4e3dd301ee102a3d
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Mon Jan 17 08:22:04 2022 +0000

    2022-01-17 08:22:02 UTC

emerge -qpvO sys-kernel/gentoo-kernel-bin
[ebuild   R   ] sys-kernel/gentoo-kernel-bin-5.15.15  USE="-initramfs -test"
Comment 1 Toralf Förster gentoo-dev 2022-01-17 10:12:25 UTC
Created attachment 762389 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-01-17 10:12:26 UTC
Created attachment 762390 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2022-01-17 10:12:27 UTC
Created attachment 762391 [details]
etc.portage.tar.bz2
Comment 4 Toralf Förster gentoo-dev 2022-01-17 10:12:29 UTC
Created attachment 762392 [details]
sys-kernel:gentoo-kernel-bin-5.15.15:20220117-093332.log.bz2
Comment 5 Toralf Förster gentoo-dev 2022-01-17 10:13:42 UTC
Whilst this might be just a tinderbox issue I like to file the bug here b/c I do not see what's wrong with the tinderbox setup (https://github.com/toralf/tinderbox/blob/master/bin/bwrap.sh#L112)
Comment 6 Georgy Yakovlev archtester gentoo-dev 2022-01-17 11:46:02 UTC
it tries to generate grub config and fails to read disks, probably due to combination of bubblewrap and namespacing.

nothing really to worry about and nothing we can do too.

error comes from sys-kernel/installkernel-gentoo[grub]

you probably want to never turn on USE=grub for installkernel-gentoo  for tinderbox runs.
Comment 7 Georgy Yakovlev archtester gentoo-dev 2022-01-17 11:47:19 UTC
on other hand maybe I can add some magic variable script reads, so it never attempts to run if it's set.

suggestions? =)
Comment 8 Georgy Yakovlev archtester gentoo-dev 2022-01-17 11:48:03 UTC
here's the hook that fails, for the record

https://github.com/mgorny/installkernel-gentoo/blob/master/hooks/91-grub-mkconfig.install
Comment 9 Andrew Ammerlaan gentoo-dev 2024-04-07 20:04:13 UTC
Grub-mkconfig exits non-fatally in recent versions