Bug 2330137

Summary: Missing dependency: hostname
Product: [Fedora] Fedora Reporter: Vladislav Grigoryev <vg.aetera>
Component: akmodsAssignee: Nicolas Chauvet (kwizart) <kwizart>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 41CC: hdegoede, hobbes1069, kwizart, leigh123linux, negativo17, nicolas.vieville, travier, vg.aetera
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: akmods-0.6.0-7.fc42 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-12-10 16:22:45 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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