public inbox for passt-dev@passt.top
 help / color / mirror / code / Atom feed
From: Stefano Brivio <sbrivio@redhat.com>
To: "Richard W.M. Jones" <rjones@redhat.com>
Cc: Yumei Huang <yuhuang@redhat.com>,
	passt-dev@passt.top, david@gibson.dropbear.id.au,
	berrange@redhat.com
Subject: Re: [PATCH] test: fix 'make assets' failure as root
Date: Thu, 25 Sep 2025 11:40:25 +0200	[thread overview]
Message-ID: <20250925114025.14ea1815@elisabeth> (raw)
In-Reply-To: <20250925085305.GW1460@redhat.com>

On Thu, 25 Sep 2025 09:53:06 +0100
"Richard W.M. Jones" <rjones@redhat.com> wrote:

> On Thu, Sep 25, 2025 at 01:43:06PM +0800, Yumei Huang wrote:
> > Running `make assets` under `test` as root fails with a "Permission denied"
> > error when `prepare-distro-img.sh` invokes `virt-edit` and `guestfish`. This
> > is due to a known bug in libvirt.
> > 
> > Work around the issue by switching to the direct backend.
> > 
> > Signed-off-by: Yumei Huang <yuhuang@redhat.com>
> > ---
> >  test/prepare-distro-img.sh | 2 ++
> >  1 file changed, 2 insertions(+)
> > 
> > diff --git a/test/prepare-distro-img.sh b/test/prepare-distro-img.sh
> > index 0d967c9..423eea7 100755
> > --- a/test/prepare-distro-img.sh
> > +++ b/test/prepare-distro-img.sh
> > @@ -3,6 +3,8 @@
> >  IMG="$1"
> >  PASST_FILES="$(echo ../*.c ../*.h ../*.sh ../*.1 ../Makefile ../README.md)"
> >  
> > +export LIBGUESTFS_BACKEND=direct  
> 
> Please add a comment that this is only added as a temporary hack until
> we can get a proper fix (in libguestfs possibly, see Dan's earlier
> email).

On the other hand, regardless of that fix, I would be happy to be run
this on single-user Alpine L1 guests, eventually, where libguestfs
doesn't depend on libvirt (see my caveat 2.), and I usually reserve
very little disk space for those.

If you don't have compelling reasons (like you're dropping
LIBGUESTFS_BACKEND=direct in two weeks), I would simply keep this as
long as it works. The day you drop that, we'll drop this too.

This part won't be executed as part of automated distribution tests
either, so occasional breakages are really unproblematic.

Do you see any further issue with it?

-- 
Stefano


  reply	other threads:[~2025-09-25  9:40 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-09-25  5:43 Yumei Huang
2025-09-25  6:25 ` David Gibson
2025-09-25  8:53 ` Richard W.M. Jones
2025-09-25  9:40   ` Stefano Brivio [this message]
2025-09-25 10:27     ` Richard W.M. Jones
2025-09-25 10:54       ` Stefano Brivio
2025-09-26  1:00         ` Yumei Huang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250925114025.14ea1815@elisabeth \
    --to=sbrivio@redhat.com \
    --cc=berrange@redhat.com \
    --cc=david@gibson.dropbear.id.au \
    --cc=passt-dev@passt.top \
    --cc=rjones@redhat.com \
    --cc=yuhuang@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://passt.top/passt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for IMAP folder(s).