Skip to content

Comments

Compatibility for systemd >= 249 hostnamectl#63438

Closed
eliasp wants to merge 3 commits intosaltstack:masterfrom
eliasp:hostnamectl-249
Closed

Compatibility for systemd >= 249 hostnamectl#63438
eliasp wants to merge 3 commits intosaltstack:masterfrom
eliasp:hostnamectl-249

Conversation

@eliasp
Copy link
Contributor

@eliasp eliasp commented Jan 9, 2023

systemd 249 changed the verb set-hostname of hostnamectl to just hostname.
While the previous one is expected to remain available for the time being, make sure the new one is used when appropriate to prevent any issues in the future once the set-hostname form will be removed.

What does this PR do?

What issues does this PR fix or reference?

Fixes: --

Previous Behavior

The functions network.mod_hostname and system.set_computer_desc used hostnamectl set-hostname to control the (pretty) hostname of a system.

New Behavior

The functions network.mod_hostname and system.set_computer_desc use hostnamectl hostname (instead of ... set-hostname) to control the (pretty) hostname of a system when the used systemd version is equal or greater than 249.

Merge requirements satisfied?

[NOTICE] Bug fixes or features added to Salt require tests.

Commits signed with GPG?

Yes

@eliasp eliasp requested a review from a team as a code owner January 9, 2023 08:08
@eliasp eliasp requested review from dwoz and removed request for a team January 9, 2023 08:08
s0undt3ch
s0undt3ch previously approved these changes Jan 9, 2023
Copy link
Contributor

@Ch3LL Ch3LL left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add a changelog for this change

@Ch3LL Ch3LL force-pushed the hostnamectl-249 branch from 59a48c4 to 84bc270 Compare March 8, 2023 20:10
@Ch3LL Ch3LL temporarily deployed to ci June 6, 2023 21:11 — with GitHub Actions Inactive
@Ch3LL Ch3LL temporarily deployed to ci June 6, 2023 21:11 — with GitHub Actions Inactive
@Ch3LL Ch3LL temporarily deployed to ci June 6, 2023 21:12 — with GitHub Actions Inactive
@Ch3LL Ch3LL temporarily deployed to ci June 6, 2023 21:12 — with GitHub Actions Inactive
@Ch3LL Ch3LL temporarily deployed to ci June 6, 2023 21:29 — with GitHub Actions Inactive
@Ch3LL Ch3LL temporarily deployed to ci June 6, 2023 21:35 — with GitHub Actions Inactive
@Ch3LL Ch3LL temporarily deployed to ci June 7, 2023 01:01 — with GitHub Actions Inactive
@Ch3LL Ch3LL temporarily deployed to ci June 7, 2023 01:02 — with GitHub Actions Inactive
@Ch3LL Ch3LL temporarily deployed to ci June 7, 2023 01:02 — with GitHub Actions Inactive
@Ch3LL Ch3LL temporarily deployed to ci June 7, 2023 01:02 — with GitHub Actions Inactive
@Ch3LL Ch3LL temporarily deployed to ci June 7, 2023 01:02 — with GitHub Actions Inactive
@Ch3LL Ch3LL temporarily deployed to ci June 7, 2023 01:02 — with GitHub Actions Inactive
@Ch3LL Ch3LL temporarily deployed to ci June 7, 2023 01:39 — with GitHub Actions Inactive
@Ch3LL Ch3LL temporarily deployed to ci June 7, 2023 01:39 — with GitHub Actions Inactive
@Ch3LL Ch3LL temporarily deployed to ci June 7, 2023 01:39 — with GitHub Actions Inactive
@Ch3LL Ch3LL temporarily deployed to ci June 7, 2023 01:39 — with GitHub Actions Inactive
@Ch3LL Ch3LL temporarily deployed to ci June 7, 2023 01:39 — with GitHub Actions Inactive
@Ch3LL Ch3LL temporarily deployed to ci June 7, 2023 01:39 — with GitHub Actions Inactive
eliasp and others added 2 commits October 19, 2023 14:40
systemd 249 changed the verb `set-hostname` of `hostnamectl` to just
`hostname`.
While the previous one is expected to remain available for the time
being, make sure the new one is used when appropriate to prevent any
issues in the future once the `set-hostname` form will be removed.
@Ch3LL Ch3LL temporarily deployed to ci October 19, 2023 21:24 — with GitHub Actions Inactive
@Ch3LL Ch3LL temporarily deployed to ci October 19, 2023 23:38 — with GitHub Actions Inactive
@Ch3LL Ch3LL temporarily deployed to ci October 19, 2023 23:38 — with GitHub Actions Inactive
@Ch3LL Ch3LL temporarily deployed to ci October 19, 2023 23:39 — with GitHub Actions Inactive
@Ch3LL Ch3LL temporarily deployed to ci October 20, 2023 00:54 — with GitHub Actions Inactive
@Ch3LL Ch3LL temporarily deployed to ci October 20, 2023 00:54 — with GitHub Actions Inactive
@Ch3LL Ch3LL temporarily deployed to ci October 20, 2023 00:54 — with GitHub Actions Inactive
@Ch3LL Ch3LL temporarily deployed to ci October 20, 2023 00:54 — with GitHub Actions Inactive
@Ch3LL Ch3LL temporarily deployed to ci October 20, 2023 00:54 — with GitHub Actions Inactive
@Ch3LL Ch3LL temporarily deployed to ci October 20, 2023 00:54 — with GitHub Actions Inactive
@Ch3LL Ch3LL temporarily deployed to ci October 20, 2023 16:25 — with GitHub Actions Inactive
@Ch3LL Ch3LL temporarily deployed to ci October 20, 2023 16:25 — with GitHub Actions Inactive
@Ch3LL Ch3LL temporarily deployed to ci October 20, 2023 16:27 — with GitHub Actions Inactive
@Ch3LL Ch3LL temporarily deployed to ci October 20, 2023 16:27 — with GitHub Actions Inactive
@Ch3LL Ch3LL temporarily deployed to ci October 20, 2023 16:28 — with GitHub Actions Inactive
@Ch3LL Ch3LL temporarily deployed to ci October 20, 2023 16:28 — with GitHub Actions Inactive
@Ch3LL Ch3LL temporarily deployed to ci October 20, 2023 18:56 — with GitHub Actions Inactive
@Ch3LL Ch3LL temporarily deployed to ci October 20, 2023 18:56 — with GitHub Actions Inactive
@Ch3LL Ch3LL temporarily deployed to ci October 20, 2023 18:56 — with GitHub Actions Inactive
@Ch3LL Ch3LL temporarily deployed to ci October 20, 2023 18:56 — with GitHub Actions Inactive
@Ch3LL Ch3LL temporarily deployed to ci October 20, 2023 18:57 — with GitHub Actions Inactive
@Ch3LL Ch3LL temporarily deployed to ci October 20, 2023 18:57 — with GitHub Actions Inactive
@Ch3LL Ch3LL temporarily deployed to ci October 20, 2023 21:13 — with GitHub Actions Inactive
@Ch3LL Ch3LL temporarily deployed to ci October 20, 2023 21:14 — with GitHub Actions Inactive
@Ch3LL Ch3LL temporarily deployed to ci October 20, 2023 21:14 — with GitHub Actions Inactive
@Ch3LL Ch3LL temporarily deployed to ci October 20, 2023 21:14 — with GitHub Actions Inactive
@Ch3LL Ch3LL temporarily deployed to ci October 20, 2023 21:14 — with GitHub Actions Inactive
@Ch3LL Ch3LL temporarily deployed to ci October 20, 2023 21:14 — with GitHub Actions Inactive
@dwoz dwoz added this to the Argon v3008.0 milestone Dec 18, 2023
@eliasp eliasp closed this Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants