-
Notifications
You must be signed in to change notification settings - Fork 294
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DEFAULT_HOSTNAME=
in os-release is not set when Hostname=
is set
#2673
Comments
Reading the linked issue I'm not sure setting the |
I see no scenario where people would have to remove that line. If people are already setting |
Turning this into an RFE as I don't think this is necessarily a bug |
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: