Install a one-shot service to initialize hostid

This commit is contained in:
Stefan Bethke 2026-03-31 19:55:02 +02:00
commit 7ebf94cc23
3 changed files with 28 additions and 2 deletions

View file

@ -0,0 +1,13 @@
[Unit]
Description=Initialize /etc/hostid
Documentation=https://git.hamburg.ccc.de/CCCHH/pve-template-vm
After=sysinit.target
[Service]
Type=oneshot
ExecStart=/usr/local/sbin/initialize-host-id
User=root
Restart=never
[Install]
WantedBy=sysinit.target