Skip to content
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

Set DEFAULT_HOSTNAME in os-release when specified (fixes #2673) #2963

Merged
merged 1 commit into from
Aug 21, 2024

Conversation

septatrix
Copy link
Contributor

When the user specifies a hostname in the mkosi config they intend this to be the hostname which the system should have by default. Setting this in the os-release file ensures that this will also be applied up after a DHCP lease expires and the previous transient hostname was lost (in case no hostname exists under /etc as is the case for a /usr-only system).

mkosi/__init__.py Outdated Show resolved Hide resolved
@DaanDeMeyer DaanDeMeyer merged commit ad01fee into systemd:main Aug 21, 2024
28 of 32 checks passed
@septatrix septatrix deleted the enhance/os-release-hostname branch August 21, 2024 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants