Skip to content

Commit

Permalink
Temporary: Shutdown our VMs after provisioning
Browse files Browse the repository at this point in the history
While we do recommend a reboot, just preemptively shutdown all of
our VMs after provisioning to ensure anything that follows (e.g. CI
runs) will be from a cleaner state.

We tried to implement this in workstation-ci itself (<freedomofpress/securedrop-workstation-ci#44>),
but it isn't working as we desired, so we'll do this for now and revert
once CI is fixed.
  • Loading branch information
legoktm committed Apr 5, 2024
1 parent 6393055 commit 0c93510
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions files/provision-all
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,8 @@ qvm-check --quiet sd-fedora-39-dvm 2> /dev/null && \
sudo qubesctl --show-output --skip-dom0 --targets sd-fedora-39-dvm state.highstate && \
qvm-shutdown --wait sys-usb && qvm-start sys-usb || \
sudo qubesctl --show-output --skip-dom0 --targets sys-usb state.highstate

# Shut down all VMs to ensure new configuration takes place, if the user doesn't reboot.
echo "will shut down the following VMs"
qvm-ls --tags sd-workstation
qvm-ls --tags sd-workstation --raw-list | xargs qvm-shutdown --wait

0 comments on commit 0c93510

Please sign in to comment.