Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 949235 - sys-kernel/dracut-103-r4 fails when trying to build crypt-ssh support
Summary: sys-kernel/dracut-103-r4 fails when trying to build crypt-ssh support
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Alexander Tsoy
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-02-02 19:10 UTC by Ivan Occam
Modified: 2025-02-04 21:00 UTC (History)
3 users (show)

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


Attachments
output of dracut --force --debug -m " crypt-ssh " (dracut.debug,394.95 KB, text/plain)
2025-02-04 20:30 UTC, Ivan Occam
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ivan Occam 2025-02-02 19:10:26 UTC
dracut cannot build initramfs with crypt-ssh support, despite having the required packages installed for network-legacy, as indicated by https://wiki.gentoo.org/wiki/Dracut#List_of_modules

sys-apps/iproute2 (ip),
 ? (dhclient),
sys-apps/sed (sed),
virtual/awk (awk),
sys-apps/grep (grep),
sys-apps/coreutils (tr, expr),
net-analyzer/arping (arping)

The dracut-crypt-ssh package is also installed.

Reproducible: Always

Steps to Reproduce:
run dracut -m " crypt-ssh " --force
Actual Results:  
dracut[I]: Executing: /usr/bin/dracut -m " crypt-ssh " --force
dracut[E]: Module 'network' depends on module 'network-legacy', which can't be installed
dracut[E]: Module 'crypt-ssh' depends on module 'network', which can't be installed
dracut[E]: Module 'crypt-ssh' cannot be installed.

Expected Results:  
dracut builds an initramfs will the crypt-ssh module included

This dracut behaviour has been witnessed on four different AMD64 computers, in both dracut-103-r4 and -105-r4.
Comment 1 Ivan Occam 2025-02-02 19:11:35 UTC
Occurs with openrc; systemd behaviour unknown.
Comment 2 Mike Gilbert gentoo-dev 2025-02-03 00:54:05 UTC
Please attach the output with the --debug option enabled.
Comment 3 Ivan Occam 2025-02-04 20:30:07 UTC
Created attachment 918188 [details]
output of dracut --force --debug -m " crypt-ssh "
Comment 4 Mike Gilbert gentoo-dev 2025-02-04 21:00:13 UTC
From the log:

/usr/lib/dracut/dracut-init.sh@118(require_binaries): ddebug 'Module '\''network-legacy'\'' will not be installed, because command '\''dhclient'\'' could not be found!'

You don't have dhclient (net-misc/dhcp) installed.