summaryrefslogtreecommitdiffstats
path: root/elchos/root-image/etc/systemd/system/elch-hostname.service
diff options
context:
space:
mode:
Diffstat (limited to 'elchos/root-image/etc/systemd/system/elch-hostname.service')
-rw-r--r--elchos/root-image/etc/systemd/system/elch-hostname.service11
1 files changed, 11 insertions, 0 deletions
diff --git a/elchos/root-image/etc/systemd/system/elch-hostname.service b/elchos/root-image/etc/systemd/system/elch-hostname.service
new file mode 100644
index 00000000..8af94772
--- /dev/null
+++ b/elchos/root-image/etc/systemd/system/elch-hostname.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=change elchOS hostname
+Before=network.target nss-lookup.target multi-user.target
+
+[Service]
+Type=oneshot
+RemainAfterExit=yes
+ExecStart=/krebs/bin/set-hostname.sh
+
+[Install]
+WantedBy=multi-user.target