Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
PSA: installkernel-gentoo-8 requires dracut for initramfs
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
g0rg0n
Tux's lil' helper
Tux's lil' helper


Joined: 18 Feb 2006
Posts: 83

PostPosted: Wed Dec 06, 2023 5:14 am    Post subject: PSA: installkernel-gentoo-8 requires dracut for initramfs Reply with quote

Instead of asking for USE="dracut" installkernel-gentoo-8, gentoo-kernel tries to pull installkernel-systemd which leads to package blocks.

Code:
theoffice /var/db/repos/gentoo # USE="-dracut" emerge -vp gentoo-kernel

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

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

[ebuild   R    ] sys-apps/systemd-254.7:0/2::gentoo  USE="acl curl dns-over-tls gcrypt kernel-install* kmod lz4 openssl pam pcre policykit resolvconf seccomp sysv-utils zstd -apparmor -audit -boot -cgroup-hybrid -cryptsetup -elfutils -fido2 -gnutls -homed -http -idn -importd -iptables -lzma -pkcs11 -pwquality -qrcode -secureboot (-selinux) (-split-usr) -test -tpm -ukify -vanilla -xkb" PYTHON_SINGLE_TARGET="python3_11 -python3_10 -python3_12" 0 KiB
[ebuild  N     ] sys-kernel/installkernel-systemd-2-r5::gentoo  0 KiB
[ebuild   R    ] sys-kernel/gentoo-kernel-6.6.4:6.6.4::gentoo  USE="initramfs strip -debug -hardened -modules-sign -savedconfig -secureboot -test" 0 KiB
[blocks B      ] sys-kernel/installkernel-systemd ("sys-kernel/installkernel-systemd" is soft blocking sys-kernel/installkernel-gentoo-8)
[blocks B      ] sys-kernel/installkernel-gentoo ("sys-kernel/installkernel-gentoo" is soft blocking sys-kernel/installkernel-systemd-2-r5)

Total: 3 packages (1 new, 2 reinstalls), Size of downloads: 0 KiB
Conflict: 2 blocks (2 unsatisfied)

 * Error: The above package list contains packages which cannot be
 * installed at the same time on the same system.

  (sys-kernel/installkernel-systemd-2-r5:0/0::gentoo, ebuild scheduled for merge) pulled in by
    sys-kernel/installkernel-systemd required by (sys-kernel/gentoo-kernel-6.6.4:6.6.4/6.6.4::gentoo, ebuild scheduled for merge) USE="initramfs strip -debug -hardened -modules-sign -savedconfig -secureboot -test"

  (sys-kernel/installkernel-gentoo-8:0/0::gentoo, installed) pulled in by
    sys-kernel/installkernel-gentoo required by (sys-apps/debianutils-5.14:0/0::gentoo, installed) USE="installkernel -static"
    sys-kernel/installkernel-gentoo required by @selected


For more information about Blocked Packages, please refer to the following
section of the Gentoo Linux x86 Handbook (architecture is irrelevant):

https://wiki.gentoo.org/wiki/Handbook:X86/Working/Portage#Blocked_packages


The following USE changes are necessary to proceed:
 (see "package.use" in the portage(5) man page for more details)
# required by sys-kernel/installkernel-systemd-2-r5::gentoo
# required by sys-kernel/gentoo-kernel-6.6.4::gentoo[initramfs]
# required by @selected
# required by @world (argument)
>=sys-apps/systemd-254.7 kernel-install

 * In order to avoid wasting time, backtracking has terminated early
 * due to the above autounmask change(s). The --autounmask-backtrack=y
 * option can be used to force further backtracking, but there is no
 * guarantee that it will produce a solution.
theoffice /var/db/repos/gentoo #


from eclass/kernel-install.eclass :

Code:
# note: we need installkernel with initramfs support!
IDEPEND="
    !initramfs? (
        || (
            sys-kernel/installkernel-gentoo
            sys-kernel/installkernel-systemd
        )
    )
    initramfs? (
        >=sys-kernel/dracut-059-r4
        || (
            <=sys-kernel/installkernel-gentoo-7
            >=sys-kernel/installkernel-gentoo-8[dracut(-)]
            sys-kernel/installkernel-systemd
        )
    )
"


Enabling dracut fixes dependency requirements:
Code:
cat /etc/portage/package.use/installkernel-gentoo
sys-kernel/installkernel-gentoo dracut



edit:
looks like this change was made few hours ago:
https://gitweb.gentoo.org/repo/gentoo.git/commit/eclass/kernel-install.eclass?id=db0195c3d66fc9ca1ee966b2177b2174a7d7bd02
_________________
nicewarm.coffee
Back to top
View user's profile Send private message
g0rg0n
Tux's lil' helper
Tux's lil' helper


Joined: 18 Feb 2006
Posts: 83

PostPosted: Wed Dec 06, 2023 7:27 am    Post subject: Reply with quote

resolved now, dracut should be enabled by default:
https://bugs.gentoo.org/919315
_________________
nicewarm.coffee
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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