DEFAULT_HOSTNAME=
in os-release is not set when Hostname=
is set
#2673
Labels
DEFAULT_HOSTNAME=
in os-release is not set when Hostname=
is set
#2673
mkosi commit the issue has been seen with
main
Used host distribution
Fedora 40
Used target distribution
Fedora 40
Linux kernel version used
6.8.7-300.fc40.x86_64
CPU architectures issue was seen on
x86_64
Unexpected behaviour you saw
On a usr/-only build the hostname reverted to "fedora" after losing a DHCP lease which assigned a hostname instead of the hostname set during image build by mkosi. See systemd/systemd#32541
As there is only one level of transient hostname "storage" there is no way to get the original hostname back afterwards. Therefore the only fallback possible is to use the default hostname from os-release (or the one compiled during systemd build). mkosi should therefore also update that variable to ensure the expected behavior.
Used mkosi config
No response
mkosi output
No response
The text was updated successfully, but these errors were encountered: