[Libguestfs] [PATCH 2/2] Make sure gpg-agent is terminated before umount

Cédric Bosdonnat cbosdonnat at suse.com
Tue Jul 28 13:21:38 UTC 2015


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" ->
-- 
2.1.4




More information about the Libguestfs mailing list