Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 816867 - dev-util/ostree - dracut: dracut module 'ostree' cannot be found or installed.
Summary: dev-util/ostree - dracut: dracut module 'ostree' cannot be found or installed.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Zac Medico
URL:
Whiteboard:
Keywords: PullRequest
: 796443 (view as bug list)
Depends on:
Blocks:
 
Reported: 2021-10-07 16:06 UTC by Toralf Förster
Modified: 2021-10-18 04:23 UTC (History)
4 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,17.60 KB, text/plain)
2021-10-07 16:06 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,441.31 KB, text/plain)
2021-10-07 16:06 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,32.31 KB, application/x-bzip)
2021-10-07 16:06 UTC, Toralf Förster
Details
sys-kernel:gentoo-kernel-bin-5.14.10:20211007-155852.log.bz2 (sys-kernel:gentoo-kernel-bin-5.14.10:20211007-155852.log.bz2,143.13 KB, application/x-bzip)
2021-10-07 16:06 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 2021-10-07 16:06:01 UTC
 *     emerge --config sys-kernel/gentoo-kernel-bin:5.14.10
 * ERROR: sys-kernel/gentoo-kernel-bin-5.14.10::gentoo failed (postinst phase):
 *   Kernel install failed, please fix the problems and run emerge --config sys-kernel/gentoo-kernel-bin:5.14.10
 * 
 * Call stack:
 *     ebuild.sh, line  127:  Called pkg_postinst
 *   environment, line 1629:  Called kernel-install_pkg_postinst

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_no_multilib_hardened-j4-20210930-222637

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-11.2.0 *
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.7
Available Ruby profiles:
  [1]   ruby26 (with Rubygems)
  [2]   ruby30 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.55.0 *
The Glorious Glasgow Haskell Compilation System, version 8.10.4
php cli:

  HEAD of ::gentoo
commit b2063327391038bd563da617c34c18acc4e05fc0
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Thu Oct 7 14:21:33 2021 +0000

    2021-10-07 14:21:32 UTC

emerge -qpvO sys-kernel/gentoo-kernel-bin
[ebuild   R   ] sys-kernel/gentoo-kernel-bin-5.14.10  USE="initramfs -test"
Comment 1 Toralf Förster gentoo-dev 2021-10-07 16:06:02 UTC
Created attachment 743793 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-10-07 16:06:04 UTC
Created attachment 743796 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2021-10-07 16:06:05 UTC
Created attachment 743799 [details]
etc.portage.tar.bz2
Comment 4 Toralf Förster gentoo-dev 2021-10-07 16:06:07 UTC
Created attachment 743802 [details]
sys-kernel:gentoo-kernel-bin-5.14.10:20211007-155852.log.bz2
Comment 5 Toralf Förster gentoo-dev 2021-10-12 00:07:38 UTC
well, it is related to initramfs - not sure, if that works at all in a chroot ?
Comment 6 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2021-10-12 06:37:29 UTC
I'm afraid I don't know either.  I very much appreciate your effort but at this point, I don't think I'm capable of providing extra time to work on something that apparently doesn't affect real systems.
Comment 7 Mike Gilbert gentoo-dev 2021-10-18 02:54:55 UTC
From the log:

> dracut: dracut module 'ostree' cannot be found or installed.

That indicates some problem with the dracut module installed by dev-util/ostree.
Comment 8 Mike Gilbert gentoo-dev 2021-10-18 03:03:56 UTC
Questions:

1. Does your environment currently have dev-util/ostree[dracut] installed?

2. Does /etc/dracut.conf.d/ostree.conf exist?

If 1 is "no" and 2 is "yes", something has gone wrong with CONFIG_PROTECT. In that case, please try removing /etc/dracut.conf.d/ostree.conf manually.
Comment 9 Mike Gilbert gentoo-dev 2021-10-18 03:16:27 UTC
I think the problem may be that the ostree dracut module depends on having systemd installed.

https://github.com/ostreedev/ostree/blob/v2021.4/src/boot/dracut/module-setup.sh#L25

I would suggest 2 changes to the ostree ebuild:

1. Update the ostree ebuild to pass --with-dracut=yesbutnoconf to configure. This will cause /etc/dracut.conf.d/ostree.conf to not be installed.

https://github.com/ostreedev/ostree/blob/v2021.4/configure.ac#L462

If the user wants to enable the module, they can request it explicitly when calling dracut.


2. Set REQUIRED_USE="dracut? ( systemd )" to express the proper dependency.
Comment 10 Mike Gilbert gentoo-dev 2021-10-18 03:18:28 UTC
*** Bug 796443 has been marked as a duplicate of this bug. ***
Comment 11 Larry the Git Cow gentoo-dev 2021-10-18 04:23:29 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8fa6918c267a563d882443867522998146109a1e

commit 8fa6918c267a563d882443867522998146109a1e
Author:     Mike Gilbert <floppym@gentoo.org>
AuthorDate: 2021-10-18 03:24:23 +0000
Commit:     Zac Medico <zmedico@gentoo.org>
CommitDate: 2021-10-18 04:20:11 +0000

    dev-util/ostree: set REQUIRED_USE="dracut? ( systemd )"
    
    Closes: https://bugs.gentoo.org/816867
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>
    Signed-off-by: Zac Medico <zmedico@gentoo.org>

 dev-util/ostree/ostree-2021.3-r2.ebuild | 5 ++++-
 dev-util/ostree/ostree-2021.4.ebuild    | 1 +
 2 files changed, 5 insertions(+), 1 deletion(-)

Additionally, it has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=31f39c31a5d525cb855c98eb3fcf95bfc97b2694

commit 31f39c31a5d525cb855c98eb3fcf95bfc97b2694
Author:     Mike Gilbert <floppym@gentoo.org>
AuthorDate: 2021-10-18 03:31:38 +0000
Commit:     Zac Medico <zmedico@gentoo.org>
CommitDate: 2021-10-18 04:20:35 +0000

    dev-util/ostree: do not install /etc/dracut.conf.d/ostree.conf
    
    Bug: https://bugs.gentoo.org/816867
    Closes: https://github.com/gentoo/gentoo/pull/22616
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>
    Signed-off-by: Zac Medico <zmedico@gentoo.org>

 dev-util/ostree/{ostree-2021.4.ebuild => ostree-2021.4-r1.ebuild} | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)