Revision 5f27b178

b/image_creator/disk.py
175 175
        self.g = guestfs.GuestFS()
176 176
        self.g.add_drive_opts(self.real_device, readonly=0)
177 177

  
178
        # Before version 1.17.14 the recovery process, which is a fork of the
179
        # original process that called libguestfs, did not close its inherited
180
        # file descriptors. This can cause problems especially if the parent
181
        # process has opened pipes. Since the recovery process is an optional
182
        # feature of libguestfs, it's better to disable it.
183
        self.g.set_recovery_proc(0)
184
        version = self.g.version()
185
        if version['major'] > 1 or (version['major'] == 1 and
186
            (version['minor'] >= 18 or \
187
            (version['minor'] == 17 and version['release'] >= 14))):
188
            self.g.set_recovery_proc(1)
189
            self.out.output("Enabling recovery proc")
190

  
178 191
        #self.g.set_trace(1)
179 192
        #self.g.set_verbose(1)
180 193

  

Also available in: Unified diff