Lines Matching refs:img
66 def __init__(self, img, progress_tracker=None):
72 self.img = img
80 self.root = self.img.get_root()
93 self.img.history.create_snapshot()
100 if not self.img:
104 if self.root != self.img.root:
112 self.img.history.restore_snapshot()
114 self.img.history.discard_snapshot()
121 self.img.find_root(self.root)
123 self.img.history.discard_snapshot()
136 self.img.get_root()
172 def __init__(self, img, progress_tracker=None):
174 GenericBootEnv.__init__(self, img, progress_tracker)
216 img.history.operation_snapshot = \
450 def init_image_recovery(self, img, be_name=None):
456 self.img = img
482 img.find_root(self.clone_dir, exact_match=True)
506 self.img.history.operation_new_be = self.be_clone.name
507 self.img.history.operation_new_be_uuid = \
509 self.img.history.log_operation_end(release_notes=
510 self.img.imageplan.pd.release_notes_name)
547 self.img.history.operation_snapshot = None
552 self.img.cleanup_cached_content(progtrack=self.progress_tracker)
555 if self.img.locked:
562 self.img.unlock()
576 self.img.lock()
582 self.img.lock()
585 self.img.history.log_operation_error(error=e)
620 self.img.history.log_operation_error(error=e)
717 def __init__(self, img, progress_tracker=None):
719 GenericBootEnv.__init__(self, img, progress_tracker)
771 # after img.history.operation_name has been set.
772 img.history.operation_snapshot = snapshot_name
1038 def init_image_recovery(self, img, be_name=None):
1047 self.img = img
1076 img.find_root(self.clone_dir, exact_match=True)
1086 self.img.get_root()
1123 self.img.history.operation_new_be = self.be_name_clone
1124 self.img.history.operation_new_be_uuid = self.be_name_clone_uuid
1125 self.img.history.log_operation_end(release_notes=
1126 self.img.imageplan.pd.release_notes_name)
1161 self.img.history.operation_snapshot = None
1166 self.img.cleanup_cached_content(progtrack=self.progress_tracker)
1169 if self.img.locked:
1176 self.img.unlock()
1190 self.img.lock()
1196 self.img.lock()
1199 self.img.history.log_operation_error(error=e)
1233 self.img.history.log_operation_error(error=e)
1321 def __init__(self, img, progress_tracker=None):
1407 def init_image_recovery(img, be_name=None):