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

qubes-template-manager (QTM) cli tool #2064

Open
adrelanos opened this Issue Jun 12, 2016 · 1 comment

Comments

Projects
None yet
3 participants
@adrelanos
Member

adrelanos commented Jun 12, 2016

Quote @marmarek #2061 (comment):

Generally this is just another problem with packaging templates as RPMs. Package manager want to have newest available version, but updating template at template package level will rollback all the changes / updates installed already there. This is why templates are excluded.
But as you've pointed out, there are cases when it would be useful to update/reinstall template package.
We need some better way of shipping templates... Or a consistent workflow how to handle RPM templates.

I think there is no reason to use something other than RPM (or APT, if dom0 will be one day Debian based). The template update exclusion mechanism is fine, just needs fine tuning for some rough edges. I very much recommend inventing a new package manager, that is a project in it self, a super comprehensive, difficult task. (Look into TUF.)

A qubes-template-manager (QTM) cli tool could do.

qubes-dom0-update template reinstallation option (#2061) is part of the solution, should implement a --no-exclude option for qubes-dom0-update. QTM would use that.

qtm features:

  • qtm install qubes-template-whonix-gw -> qubes-dom0-update qubes-template-whonix-gw
  • qtm reinstall qubes-template-whonix-gw -> qubes-dom0-update --no-exclude qubes-template-whonix-gw
  • qtm purge qubes-template-whonix-gw -> iterate through all TemplateBasedVMs based on qubes-template-whonix-gw, qvm-kill and qvm-remove them, -> yum remove qubes-template-whonix-gw
  • qtm remove qubes-template-whonix-gw -> iterate through all TemplateBasedVMs based on qubes-template-whonix-gw, set them to template none (#2062) -> yum remove qubes-template-whonix-gw
@marmarek

This comment has been minimized.

Show comment
Hide comment
@marmarek

marmarek Jun 12, 2016

Member

Take a look at #2063 - there are more problems with RPM templates (like inability to rename).
But such a tool looks like a good idea, for now can use qubes-dom0-update, and later switch to new mechanism when invented.

qtm purge requires very careful handling, triple user confirmation etc. Otherwise can really easily lead to data loss.

Member

marmarek commented Jun 12, 2016

Take a look at #2063 - there are more problems with RPM templates (like inability to rename).
But such a tool looks like a good idea, for now can use qubes-dom0-update, and later switch to new mechanism when invented.

qtm purge requires very careful handling, triple user confirmation etc. Otherwise can really easily lead to data loss.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment