On Tue, Jul 28, 2015 at 07:15:33PM +0200, Pino Toscano wrote: > On Tuesday 28 July 2015 15:21:38 Cédric Bosdonnat wrote: > > gpg-agent uses /sysroot/dev/null and thus /sysroot/dev can't be > > unmounted if gpg-agent is still around. Note that this problem only > > affects installing packages on fedora-22 guests. > > --- > > customize/customize_run.ml | 3 ++- > > 1 file changed, 2 insertions(+), 1 deletion(-) > > > > diff --git a/customize/customize_run.ml b/customize/customize_run.ml > > index bce0aca..81b0951 100644 > > --- a/customize/customize_run.ml > > +++ b/customize/customize_run.ml > > @@ -96,7 +96,8 @@ exec >>%s 2>&1 > > apt-get $apt_opts install %s > > " quoted_args > > | "dnf" -> > > - sprintf "dnf -y install %s" quoted_args > > + sprintf "dnf -y install %s > > + pkill gpg-agent" quoted_args > > | "pisi" -> > > sprintf "pisi it %s" quoted_args > > | "pacman" -> > > NACK to this patch, as it just sweeps the issue under the carpet. > > Basically, this is triggered by the following: > $ virt-builder fedora-22 --install <whatever> > gnupg2 (used to import keys the first time when installing packages > from a repository) requires the use of an agent, thus spawning > gnupg-agent which holds /sysroot/dev, which cannot be unmounted. > > It seems that this issue has been fixed in recent versions of > gnupg2/rpm/dnf, so updating before installing anything: > $ virt-builder fedora-22 --update --install <whatever> > which should then work (at least it does for me). > > Rich, if this fixes the problem for you as well, would it be possible > to update the fedora-22 templates with newer versions of packages?
Yes - is it only gnupg2 which needs to be updated, or all 3 packages (gnupg2 + rpm + dnf)? Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com Fedora Windows cross-compiler. Compile Windows programs, test, and build Windows installers. Over 100 libraries supported. http://fedoraproject.org/wiki/MinGW _______________________________________________ Libguestfs mailing list [email protected] https://www.redhat.com/mailman/listinfo/libguestfs
