-
Notifications
You must be signed in to change notification settings - Fork 292
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
RFE: Support setting hostname, locale and timezone #131
Comments
Of course this could be solved by manipulating |
I have just noticed #105, so the hostname part seems to be dealt with already. I think setting timezone and locale could be implemented in a similar manner. |
I'd probably add explicit support for setting the hostname, but I am not sure about /etc/locale.conf, as mkosi.extra/ appears fully sufficient to cover that, and similar for /etc/localtime. @dteleguin would mkosi.extra/ suffice for you? If yes, we can close this and leave #105 for the hostname thing. |
@poettering yep I'm OK with that, closing the issue |
At the moment, generated image ends up with the following settings:
This comes from
/etc/hostname
which belongs to systemd RPM and contains "localhost" (however may be specific to my distro, Mageia). If the image is used as a systemd-nspawn bootable container, this static hostname prevents the transient hostname (= machine name) to be set correctly (as of systemd-230). Hence, the hostname may need to be set for VMs and to be unset for containers;It would be nice to have an ability to configure this all on the image building stage. However, this can be tricky, since
hostnamectl
/localectl
/timedatectl
all require running systemd inside the image.The text was updated successfully, but these errors were encountered: