Oh right, I forgot that I had to do that to inject policycoreutils package into the libguestfs appliance (to support g.available(['selinuxrelabel']))

So if I somehow install systemd 248 from source on my debian docker and then create the appliance on it, it should just work I guess.

Thanks!

On Thu, Apr 8, 2021 at 4:01 PM Richard W.M. Jones <rjones@redhat.com> wrote:
On Thu, Apr 08, 2021 at 03:51:22PM +0300, Sam Eiderman wrote:
> Forgive my ignorance but I am not sure how to inject the newer systemd/udev
> into the appliance.

If you're using supermin then it should just happen as soon as you
upgrade it on the host system.

> Debian is always pretty slow on adding the latest code so I'm guessing I need
> to compile systemd/udev from source here (v248).
>
> However, will supermin use my installed binaries or will it download the
> package from the apt repo?

It copies the installed binaries in, but they must be known to dpkg
(IOW you must build a new systemd_<VERSION>.deb file and install it).

https://libguestfs.org/supermin.1.html#SUPERMIN-APPLIANCES

Rich.

> (Of course I can just copy-in the package to the appliance post creation for
> some basic testing at the moment)
>
> Sam
>
> On Thu, Apr 8, 2021 at 3:06 PM Richard W.M. Jones <rjones@redhat.com> wrote:
>
>     On Thu, Apr 08, 2021 at 02:30:03PM +0300, Sam Eiderman wrote:
>     > I think this is exactly the same issue (dmsetup's output is lost by
>     udev):
>     >
>     > https://github.com/systemd/systemd/issues/18190
>
>     Interesting - the fix is in systemd, does upgrading systemd (or udev)
>     help?
>
>     Rich.
>
>     --
>     Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/
>     ~rjones
>     Read my programming and virtualization blog: http://rwmj.wordpress.com
>     virt-top is 'top' for virtual machines.  Tiny program with many
>     powerful monitoring features, net stats, disk stats, logging, etc.
>     http://people.redhat.com/~rjones/virt-top
>
>

--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
libguestfs lets you edit virtual machines.  Supports shell scripting,
bindings from many languages.  http://libguestfs.org