[Libguestfs] [PATCH 4/4] Ignore launch() error in virt-rescue

Matthew Booth mbooth at redhat.com
Thu Aug 26 11:12:01 UTC 2010


launch() expects guestfsd to start, which it never does in virt-rescue, so it
always returns an error about the appliance shutting down unexpectedly.
---
 tools/virt-rescue |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/tools/virt-rescue b/tools/virt-rescue
index 1f292f6..f466b43 100755
--- a/tools/virt-rescue
+++ b/tools/virt-rescue
@@ -214,7 +214,8 @@ $g->set_append ($str);
 
 # Run the appliance.  This won't return until the user quite the
 # appliance.
-$g->launch ();
+# This will definitely return an error because we don't run the daemon
+eval { $g->launch (); };
 
 exit 0;
 
-- 
1.7.2.2




More information about the Libguestfs mailing list