Initial Commit
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
# =====================================================================
|
||||
# Record a new display name for a machine.
|
||||
#
|
||||
# systemctl start owuivm-rename@ubuntu.service
|
||||
#
|
||||
# The wanted name is read from /var/lib/owuivm/incoming/<id>.name, which
|
||||
# the desktop tool wrote as the operator. A unit instance carries one
|
||||
# string and that string has to be the machine id, so the name travels
|
||||
# through the same staging directory the installation media uses.
|
||||
#
|
||||
# This writes ONLY /var/lib/owuivm/registry/vm-names.toml, an override file that
|
||||
# readers merge over the shipped registry. configs/vms.toml is never
|
||||
# edited by a program: it is mostly comments, and no TOML writer keeps
|
||||
# them.
|
||||
# =====================================================================
|
||||
[Unit]
|
||||
Description=Rename the %i machine
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
User=owuivmadm
|
||||
Group=owuivmadm
|
||||
RemainAfterExit=no
|
||||
UMask=0022
|
||||
ProtectSystem=strict
|
||||
ReadWritePaths=/var/lib/owuivm/registry /var/lib/owuivm/incoming
|
||||
ProtectHome=yes
|
||||
PrivateTmp=yes
|
||||
NoNewPrivileges=yes
|
||||
TimeoutStartSec=30
|
||||
ExecStart=/usr/local/libexec/owuivm-set-name %i
|
||||
Reference in New Issue
Block a user