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? Thanks, -- Pino Toscano
Description: This is a digitally signed message part.