core-admin/linux/systemd/qubes-vm@.service
Marek Marczykowski-Górecki 7feed2f680
Handle qubes.skip_autostart option on kernel command line
This allows to prevent automatically starting VMs at boot, mostly for
troubleshooting.

Fixes QubesOS/qubes-issues#4312
2018-09-16 05:22:30 +02:00

16 lines
345 B
Desktop File

[Unit]
Description=Start Qubes VM %i
Before=systemd-user-sessions.service
After=qubesd.service qubes-meminfo-writer-dom0.service
ConditionKernelCommandLine=!qubes.skip_autostart
[Service]
Type=oneshot
Environment=DISPLAY=:0
ExecStart=/usr/bin/qvm-start --skip-if-running %i
Group=qubes
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target