Add a `--noforce` argument to `qvm-shutdown`
The problem you're addressing (if any)
I have a keybind that does qvm-shutdown --all --exclude=... to shut down most qubes and then locks the screen. Unfortunately, qvm-shutdown --all also implies --force. This causes issues with preloaded dispVMs (such as "orphaned" WaitForSession processes consuming CPU time).
The solution you'd like
Add a --noforce (or some other name) argument that would make it possible to use --all without implying --force.
Alternative solutions considered
Allow for wildcard/regex matches in --exclude to exclude DispVMs, or a way to exclude paused qubes.
Completion criteria checklist
(This section is for developer use only. Please do not modify it.)
Maybe simply --exclude could disable implied --force? Implied --force with --all works on assumption you shutdown everything anyway, but with --exclude this is no longer the case.
This causes issues with preloaded dispVMs (such as "orphaned"
WaitForSessionprocesses consuming CPU time).
Can you explain this again? Where do you see this?
You mean the notifications:
- https://github.com/QubesOS/qubes-issues/issues/10032
- https://github.com/QubesOS/qubes-core-admin/pull/697
Actually, after a bit of testing, I'm not fully sure it's related to the qvm-shutdown thing. The feature request still stands, I could use that feature. Marek's suggestion seems good.
@ben-grande I've created a separate issue for my problem: #10443