Revision bbfcaef1

b/image_creator/image.py
93 93
            self.out.warn("Guestfs is already enabled")
94 94
            return
95 95

  
96
        # Before version 1.18.4 the behaviour of kill_subprocess was different
97
        # and you need to reset the guestfs handler to relaunch a previously
98
        # shut down qemu backend
99
        if check_guestfs_version(self.g, 1, 18, 4) < 0:
100
            self.g = guestfs.GuestFS()
101

  
96 102
        self.g.add_drive_opts(self.device, readonly=0, format="raw")
97 103

  
98 104
        # Before version 1.17.14 the recovery process, which is a fork of the
......
119 125
        # self.g.delete_event_callback(eh)
120 126
        # self.progressbar.success('done')
121 127
        # self.progressbar = None
128

  
129
        if check_guestfs_version(self.g, 1, 18, 4) < 0:
130
            self.g.inspect_os()  # some calls need this
131

  
122 132
        self.out.success('done')
123 133

  
124 134
    def disable_guestfs(self):

Also available in: Unified diff