-
-
Notifications
You must be signed in to change notification settings - Fork 112
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
Remove hostname
dependency for Archlinux
#547
base: main
Are you sure you want to change the base?
Remove hostname
dependency for Archlinux
#547
Conversation
8fb5147
to
a7ebc6d
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #547 +/- ##
=======================================
Coverage 70.57% 70.57%
=======================================
Files 3 3
Lines 469 469
=======================================
Hits 331 331
Misses 138 138 ☔ View full report in Codecov by Sentry. |
OpenQA test summaryComplete test suite and dependencies: https://openqa.qubes-os.org/tests/overview?distri=qubesos&version=4.3&build=2025012310-4.3&flavor=pull-requests Test run included the following:
New failures, excluding unstableCompared to: https://openqa.qubes-os.org/tests/overview?distri=qubesos&version=4.3&build=2024111705-4.3&flavor=update
Failed tests10 failures
Fixed failuresCompared to: https://openqa.qubes-os.org/tests/119126#dependencies 2 fixed
Unstable tests |
There is more: hostname is also set on the VM startup: https://github.com/QubesOS/qubes-core-agent-linux/blob/main/vm-systemd/qubes-early-vm-config.sh#L22 |
This one uses the |
a7ebc6d
to
2056606
Compare
Now setting hostname is broken on Fedora (at least): https://openqa.qubes-os.org/tests/126217#step/screenlocker_idle_watch/10 (see that hostname remained "fedora", should be "work). |
Logs say:
I guess it's too early for hostnamed service... |
Maybe |
But will that be enough? Something needs to actually make the |
Does not work with root. I get Permission denied on |
2056606
to
748b48e
Compare
I modified it a little bit (only try alternative solution if |
You sure you haven't done the classic |
Anyway, I guess /etc/hostname needs to be written to too (if exists) |
fixes: QubesOS/qubes-issues#9710 `hostname` is replaced with `hostnamectl` on Archlinux
748b48e
to
d0cab32
Compare
I amended the PR to write to both. Hope it works well this time. |
What should happen if /etc/hostname is missing? For example I don't see this file on Fedora. But |
The way I modified the script (my last commit), it uses |
fixes: QubesOS/qubes-issues#9710