tests-always-included / wick

Bash-only IT automation, machine provisioning
Other
69 stars 12 forks source link

setting correct hostname using hostnamectl also #129

Closed baelish closed 5 years ago

baelish commented 5 years ago

Sometimes for reasons unknown to me a "transient" name was set in hostnamectl and this causes a fight between systemd-resolved and other things trying to set the hostname, as systemd runs many things in parallel it depends which thing runs last to find which hostname you end up with. The addition here will set the hostname using hostnamectl if the command is in the path and it reports either it's static or transient name as different from desired.

baelish commented 5 years ago

@fidian Sorry, it seems I fall from one thing into another. Looks like this may be the final one :crossed_fingers:

fidian commented 5 years ago

I don't mind, especially since you are helping out the project with each commit!