Bug 2330137 - Missing dependency: hostname
Summary: Missing dependency: hostname
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: akmods
Version: 41
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Nicolas Chauvet (kwizart)
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-12-03 09:52 UTC by Vladislav Grigoryev
Modified: 2024-12-10 23:36 UTC (History)
8 users (show)

Fixed In Version: akmods-0.6.0-7.fc42
Clone Of:
Environment:
Last Closed: 2024-12-10 16:22:45 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Vladislav Grigoryev 2024-12-03 09:52:03 UTC
Missing dependency: hostname
The hostname command/package is required by kmodgenca.
When missing, akmods fails to generate the certs/keys.

Reproducible: Always

Comment 1 Nicolas Chauvet (kwizart) 2024-12-06 08:02:02 UTC
Can you confirm that on such system missing hostname command, using ${HOSTNAME} is set to something ?

Comment 2 Vladislav Grigoryev 2024-12-06 12:03:54 UTC
```
> sudo kmodgenca
/usr/sbin/kmodgenca: line 78: hostname: command not found

> echo ${HOSTNAME}
fedora
```

Comment 3 Fedora Update System 2024-12-10 16:19:11 UTC
FEDORA-2024-f2b581b38c (akmods-0.6.0-7.fc42) has been submitted as an update to Fedora 42.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-f2b581b38c

Comment 4 Fedora Update System 2024-12-10 16:22:45 UTC
FEDORA-2024-f2b581b38c (akmods-0.6.0-7.fc42) has been pushed to the Fedora 42 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 5 Vladislav Grigoryev 2024-12-10 23:36:08 UTC
There are 3 more lines that still use $(hostname):
https://src.fedoraproject.org/rpms/akmods/blob/c16ceb525ba715eb80b561abc854e9d33af82e10/f/akmods-kmodgenca#_439-441


Note You need to log in before you can comment on or make changes to this bug.