agama/live/live-root/etc/systemd/system/agama-hostname.service
2025-10-20 17:58:52 +02:00

18 lines
497 B
Desktop File

[Unit]
Description=Set Agama hostname
# after running the default hostname systemd service
After=systemd-hostnamed.target
# but before starting the mDNS server
Before=avahi-daemon.service
# run only if the hostname has the default value, if it has been changed
# by the kernel command line or systemd then keep it
ConditionHost=|localhost
ConditionHost=|localhost.localdomain
[Service]
ExecStart=hostnamectl hostname --transient agama
Type=oneshot
User=root
[Install]
WantedBy=multi-user.target