#26 HOSTNAME lost in container
Closed by mosvald. Opened by hruskape.

In containers we don't have typically systemd installed. With recent change "eb9cc4d Switch to hostnamectl" HOSTNAME variable is cleared.
Typically HOSTNAME is defined by container infrastructure.

Can script be modified to prevent HOSTNAME update in case that hostnamectl cmd is not available?


I believe this got fixed by:

https://pagure.io/setup/c/f20b64fc99267d2343aa9141cf709ac1131bc178?branch=master
https://pagure.io/setup/c/ddd74b5d971a734c7e88cda3764f7e059f163b51?branch=master

but there is still a problem with /usr/bin/hostname which can be missing on the system, related BZ:

https://bugzilla.redhat.com/show_bug.cgi?id=2079768#c1

Metadata Update from @mosvald:
- Issue status updated to: Closed (was: Open)

Metadata