Merge "Disable libguestfs' default atexit handlers."
This commit is contained in:
commit
79051f6682
@ -17,7 +17,7 @@
|
||||
|
||||
class GuestFS(object):
|
||||
|
||||
def __init__(self):
|
||||
def __init__(self, close_on_exit=True):
|
||||
self.drives = []
|
||||
self.running = False
|
||||
self.closed = False
|
||||
|
@ -108,7 +108,7 @@ class VFSGuestFS(vfs.VFS):
|
||||
def setup(self):
|
||||
LOG.debug(_("Setting up appliance for %(imgfile)s %(imgfmt)s") %
|
||||
{'imgfile': self.imgfile, 'imgfmt': self.imgfmt})
|
||||
self.handle = tpool.Proxy(guestfs.GuestFS())
|
||||
self.handle = tpool.Proxy(guestfs.GuestFS(close_on_exit=False))
|
||||
|
||||
try:
|
||||
self.handle.add_drive_opts(self.imgfile, format=self.imgfmt)
|
||||
|
Loading…
Reference in New Issue
Block a user