28475f7214
As the service is called as root, it needs --force-root. QubesOS/qubes-issues#2412
18 lines
446 B
Desktop File
18 lines
446 B
Desktop File
[Unit]
|
|
Description=Qubes NetVM startup
|
|
After=qubes-core.service qubes-qmemman.service libvirtd.service
|
|
Before=systemd-user-sessions.service
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
Group=qubes
|
|
Environment=DISPLAY=:0
|
|
RemainAfterExit=yes
|
|
KillMode=none
|
|
ExecStart=/bin/sh -c 'NETVM=`qubes-prefs --force-root default-netvm`; [ -n "$NETVM" ] && qvm-start -q --no-guid $NETVM'
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|
|
# Cover legacy init.d script
|
|
Alias=qubes_netvm.service
|