Re: [systemd-devel] mkosi question: third party repos + dnf modules

2020-12-08 Thread Colin Guthrie
Hi Daan,

Daan De Meyer wrote on 07/12/2020 20:41:
> --repositories in mkosi is currently a bit limited. For Fedora and
> CentOS, we only support passing names of existing repositories that
> should be enabled. https://github.com/systemd/mkosi/issues/536
> reported a similar problem. We should definitely make this work better
> than it does now but it's going to require a bit of thinking on how to
> properly support this in a way that works for all major supported
> distros. For now, I think postinst is the best solution.

Thanks for the pointer to the issue. At least I'm not going insane.

I suspect supporting the modules system in DNF would be a bit tricky
too, so I'm happy enough going with an mkosi.prepare script for now.

Slightly annoyingly it means I have to actually install dnf and it's
deps inside the container built to run that, but I can always remove it
again after.

Have subscribed to the issue.

Cheers

Col


-- 

Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/

Day Job:
  Tribalogic Limited http://www.tribalogic.net/
Open Source:
  Mageia Contributor http://www.mageia.org/
  PulseAudio Hacker http://www.pulseaudio.org/
  Trac Hacker http://trac.edgewall.org/

___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/systemd-devel


Re: [systemd-devel] mkosi question: third party repos + dnf modules

2020-12-08 Thread Colin Guthrie
Reindl Harald wrote on 07/12/2020 21:34:
> and how is that systemd relevant at all?

https://github.com/systemd/mkosi

   ^^^

Maybe that bit? The fact that mkosi is a systemd project?

If you don't have anything positive to add, it's a lot less effort to just do 
nothing!

Col

___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/systemd-devel


Re: [systemd-devel] mkosi question: third party repos + dnf modules

2020-12-07 Thread Daan De Meyer
Hi,

--repositories in mkosi is currently a bit limited. For Fedora and
CentOS, we only support passing names of existing repositories that
should be enabled. https://github.com/systemd/mkosi/issues/536
reported a similar problem. We should definitely make this work better
than it does now but it's going to require a bit of thinking on how to
properly support this in a way that works for all major supported
distros. For now, I think postinst is the best solution.

Cheers,

Daan

On Mon, 7 Dec 2020 at 10:28, Colin Guthrie  wrote:
>
> Hiya,
>
> Trying to create some CentOS 8 images with mkosi 8
>
> Is it possible to use the --repositories argument to mkosi to enable a
> third party repository? If so can you tell me the secret syntax?
>
> I've tried:
>
> --repositories=https:///mirrorlist
> --repositories=https:///directlink
>
> both say: unknown repo
>
>
> I've tried copying in the appropriate *.repo files via
> mkosi.skeleton/etc/yum.repos.d/*.repo and then referring to the repo by
> name rather than URL and it doesn't work either (also tried full path
> within container and file:// prefixed path) with the same unknown repo
> error.
>
>
> I know I could do this with a postinst script but I feel like this
> should be possible via the --repositories argument!
>
> (NB, I'm actually using Repositories= in the [Distribution] section of
> an mkosi.default file rather than the command line directly but this
> /shouldn't/ make a difference!]
>
> The next question is: can we setup dnf modules as part of the initial
> install? If not, then I'll likely have to go down the postinst route
> anyway in this case, but the above is still interesting for e.g. custom
> COPR repos etc.
>
> Cheers
>
> Col
>
> ___
> systemd-devel mailing list
> systemd-devel@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/systemd-devel
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/systemd-devel