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

hostname: set the hostname on the newer location too #602

Merged
merged 1 commit into from
Jan 30, 2024

Conversation

fgiudici
Copy link
Member

The /etc/hostname file is a symlink file re-created at every elemental boot. The symlink used to point to /usr/local/etc/hostname. For forthcoming images, the symlink will point to
/run/elemental/persistent/etc/hostname.
Let's stay on the safe side: let's update the hostname at that location too.

Fixes #601

The /etc/hostname file is a symlink file re-created at every elemental
boot. The symlink used to point to /usr/local/etc/hostname. For
forthcoming images, the symlink will point to
/run/elemental/persistent/etc/hostname.
Let's stay on the safe side: let's update the hostname at that location too.

Signed-off-by: Francesco Giudici <francesco.giudici@suse.com>
@fgiudici fgiudici requested a review from a team as a code owner January 29, 2024 18:11
Copy link

codecov bot commented Jan 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (6bf2a7a) 53.75% compared to head (7da921f) 53.79%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #602      +/-   ##
==========================================
+ Coverage   53.75%   53.79%   +0.03%     
==========================================
  Files          40       40              
  Lines        6066     6071       +5     
==========================================
+ Hits         3261     3266       +5     
  Misses       2519     2519              
  Partials      286      286              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@fgiudici fgiudici merged commit 7685cc1 into rancher:main Jan 30, 2024
21 of 22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

hostname is not more set during provisioning when using Dev Elemental OS images
2 participants