On Tuesday, July 7, 2020 8:57 AM, Marek Marczykowski-Górecki 
<[email protected]> wrote:

> On Mon, Jul 06, 2020 at 06:38:30PM +0000, WillyPillow wrote:
> 

> > I'm almost finished with the list/download/install operations, and should be
> > able to commit the code in the following days. [^1] That being said, in
> > mgmtVMs, I currently don't have a means to get the repo config files, as 
> > they
> > seem to reside only in the qubes-release package.
> 

> Oh, that's right. It would be possible to split repo definitions into
> separate sub-package, but it's a bit tricky, because we can't add the
> whole qubes-release package into repository for a VM - that would break
> the template (replace fedora-release with qubes-release).
> And also, I don't think template repositories should be added to dnf in
> vm.
> 

> Perhaps a better solution would be to create new separate package with
> template repository definitions only and have it installable in both
> dom0 and VM. And have those definitions outside of /etc/yum.repos.d, so
> yum/dnf wouldn't use them normally (/usr/share/qubes/repo-templates?),
> but only when called by qvm-template with options specifically pointing
> at those files.
> 

> What do you think?

Originally I thought of creating another version of the package only containing
the repo definitions, just for VMs, but this is indeed a simpler solution. I'll
try to create such a package in the following days.

> > Similarly, I'm unsure how to
> > get the Qubes release from mgmtVMs. Perhaps a package similar to 
> > qubes-release
> > is needed in VMs? (Or is there a simpler solution?)
> 

> There is /usr/share/qubes/marker-vm file for this reason. It isn't 100%
> accurate, as you can restore template from older system on a newer one.
> But I think it should be good enough for this use case. If you want to
> manage templates on Qubes 4.1, use VM with packages from Qubes 4.1.
> 

> > [^1]: Unfortunately this also means that I'm a bit behind on my original
> > schedule. Hopefully I'm able to catch up soon.

I've committed an initial version of the {list,download,install,remove,clean}
operations to core-admin-client. Admittedly, I have yet to test it thoroughly
in mgmtVMs (most of the tests were done in dom0), though as the only major
difference should be the qrexec calls, I should be able to finish that soon.

The remaining operations (reinstall, ...etc) should also be easier to implement
as they are similar to the existing ones.

Thanks,
WillyPillow

> https://blog.nerde.pw/
>
> PGP fingerprint = 6CCF 3FC7 32AC 9D83 D154 217F 1C16 C70E E7C3 1C84
>
> Protonmail PGP = D02D CEFF ACE5 5A7B FF5D 871E 4004 1CB1 F52B 127E

-- 
You received this message because you are subscribed to the Google Groups 
"qubes-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-devel/Kr07nKsEdkc_fFrqDaJi5W6eRabBo-bkMcr6bBeuVD1kTNKKvoaOV6ID-jrg7jM3MJ8xyqSBObA6RDPdDUav0JtPRdnCsY_2Jcj_aCEMAh4%3D%40nerde.pw.

Attachment: publickey - [email protected] - 0xD02DCEFF.asc
Description: application/pgp-keys

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to