Skip to content

Commit ff887e8

Browse files
committed
vmupdate: recognize skip-update and prohibit-start features
VMs with the above features should be excluded from updating.
1 parent 6b4c80f commit ff887e8

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

vmupdate/vmupdate.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,17 @@ def select_targets(targets, args) -> Set[qubesadmin.vm.QubesVM]:
327327
to_update = vm.features.get("updates-available", False)
328328
except qubesadmin.exc.QubesDaemonCommunicationError:
329329
to_update = False
330+
try:
331+
prohibit_start = vm.features.get("prohibit-start", False)
332+
except qubesadmin.exc.QubesDaemonCommunicationError:
333+
prohibit_start = False
334+
try:
335+
skip_update = vm.features.get("skip-update", False)
336+
except qubesadmin.exc.QubesDaemonCommunicationError:
337+
skip_update = False
338+
339+
if skip_update or prohibit_start:
340+
continue
330341

331342
# there are updates available => select
332343
if to_update:

0 commit comments

Comments
 (0)