[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

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



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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]