systemd: adjust qubes-prefs options

As the service is called as root, it needs --force-root.

QubesOS/qubes-issues#2412
This commit is contained in:
Marek Marczykowski-Górecki 2016-11-03 01:02:30 +01:00
parent 28d4feb0d0
commit 28475f7214
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -9,7 +9,7 @@ Group=qubes
Environment=DISPLAY=:0 Environment=DISPLAY=:0
RemainAfterExit=yes RemainAfterExit=yes
KillMode=none KillMode=none
ExecStart=/bin/sh -c 'NETVM=`qubes-prefs --get default-netvm`; [ -n "$NETVM" ] && qvm-start -q --no-guid $NETVM' ExecStart=/bin/sh -c 'NETVM=`qubes-prefs --force-root default-netvm`; [ -n "$NETVM" ] && qvm-start -q --no-guid $NETVM'
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target