fix: add temporary workaround service for missing /etc/hostname file (#2438) (#399)

Co-authored-by: Tulip Blossom <tulilirockz@outlook.com>
This commit is contained in:
Juha Uotila 2025-04-29 09:41:35 +03:00 committed by GitHub
parent a1f1ffad02
commit 596a3a96e3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 12 additions and 0 deletions

View file

@ -8,6 +8,7 @@ set -eoux pipefail
systemctl enable rpm-ostree-countme.service
systemctl enable tailscaled.service
systemctl enable dconf-update.service
systemctl enable ublue-fix-hostname.service
systemctl --global enable ublue-flatpak-manager.service
systemctl enable ublue-system-setup.service
systemctl enable ublue-guest-user.service

View file

@ -0,0 +1,11 @@
[Unit]
name=Universal Blue Missing /etc/hostname Workaround
description=Workaround for the missing /etc/hostname file on Universal Blue systems
after=network.target
ConditionPathExists=!/etc/hostname
[Service]
ExecStart=/bin/sh -c 'echo "%H" > /etc/hostname'
[Install]
WantedBy=default.target