Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update securedrop-workstation TemplateVM rpm package #275

Closed
emkll opened this issue Jun 26, 2019 · 4 comments
Closed

Update securedrop-workstation TemplateVM rpm package #275

emkll opened this issue Jun 26, 2019 · 4 comments

Comments

@emkll
Copy link
Contributor

emkll commented Jun 26, 2019

There have been a large amount of updates in the securedrop-workstation template since it's last build. Provisioning from scratch (or after deleting securedrop-workstation template) would require to install new kernels and update all packages, and downloading the template directly would be much quicker.

The test plan for #269 included creating a template using new kernel images, and they are tracked in the LFS repo. We should upload the built template RPM to the yum repo to ensure quicker workstation build times.

@conorsch
Copy link
Contributor

New RPM has been uploaded. We have a PR tracking the artifact here: freedomofpress/securedrop-apt-test#3 Had some trouble formulating a dom0 command to upgrade the RPM in place, so trying a purge-then-install-clean to confirm the latest version is working.

@conorsch
Copy link
Contributor

All set. New template is installed and all tests are passing. Verifying old/new versions:

[user@dom0 securedrop-workstation]$ sudo dnf info qubes-template-securedrop-workstation | grep -i release
Release     : 201905141842

and after the upgrade:

[user@dom0 securedrop-workstation]$ sudo dnf info qubes-template-securedrop-workstation | grep -i release
Release     : 201906251955

Unfortunately the new package won't automatically be installed for developers. They'll need to force the upgrade in order to take advantage of it. While I haven't confirmed myself, the following command should upgrade the template in-place, provided one has previously run make all (so that the repo config and pubkey are in place):

sudo qubes-dom0-update --action=upgrade qubes-template-securedrop-workstation

@conorsch
Copy link
Contributor

Moving to "ready for review" to give team members a chance to test the upgrade-in-place command above. Fine to close, as the work described here is complete.

@emkll
Copy link
Contributor Author

emkll commented Jul 25, 2019

Thanks for uploading the packages, @conorsch . Unfortunately, I too was unable to upgrade RPM (and template) in place using qubes-dom0-update, even with --enablerepo parameter. I've opened #302 to track this issue.

Otherwise, make clean and removal of all templates, and provisioning using the new template works as expected.

@emkll emkll closed this as completed Jul 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants