Skip to content

Commit

Permalink
Fix clean for sd-export
Browse files Browse the repository at this point in the history
clean makefile target will now force remove the usb device from sd-export-usb and delete VMs in order. sd-export-dvm should be removed *after* sd-export-usb, as the former is the DispVM template for the latter. sd-export-dvm will no longer persist after a make clean
  • Loading branch information
emkll committed Jun 5, 2019
1 parent fe1d41a commit efc1ede
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,15 @@ remove-sd-svs: assert-dom0 ## Destroys SD SVS VM
remove-sd-gpg: assert-dom0 ## Destroys SD GPG keystore VM
@./scripts/destroy-vm sd-gpg

remove-sd-export: assert-dom0 ## Destroys SD EXPORT VMs
@qvm-kill sd-export-usb || true
@qvm-usb detach sd-export-usb || true
remove-sd-export: assert-dom0 detach-sd-export-usb ## Destroys SD EXPORT VMs
@./scripts/destroy-vm sd-export-usb
@./scripts/destroy-vm sd-export-usb-dvm

clean: assert-dom0 destroy-all clean-salt ## Destroys all SD VMs
detach-sd-export-usb: assert-dom0 ## Detach USB device from SD EXPORT USB VM
@qvm-kill sd-export-usb || true
@qvm-usb detach sd-export-usb || true

clean: assert-dom0 detach-sd-export-usb destroy-all clean-salt ## Destroys all SD VMs
sudo dnf -y -q remove securedrop-workstation-dom0-config || true
sudo rm -f /usr/bin/securedrop-update \
/etc/cron.daily/securedrop-update-cron
Expand Down
2 changes: 1 addition & 1 deletion scripts/list-vms
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ declare -a sd_workstation_vm_names=(
sd-whonix
sd-svs-disp
sd-svs-disp-template
sd-export-usb-dvm
sd-export-usb
sd-export-usb-dvm
sd-export-template
)

Expand Down

0 comments on commit efc1ede

Please sign in to comment.