X-Git-Url: https://code.grnet.gr/git/snf-image-creator/blobdiff_plain/ab694a5ed6654a36fa39815d3e6c43f8fea9f554..ce66ae38c3fbecdf73151161d894d5c2f7511784:/image_creator/os_type/__init__.py diff --git a/image_creator/os_type/__init__.py b/image_creator/os_type/__init__.py index ec4f20d..f3a33d9 100644 --- a/image_creator/os_type/__init__.py +++ b/image_creator/os_type/__init__.py @@ -85,6 +85,13 @@ class OSBase(object): self.out = output self.meta = {} + # Many guestfs compilations don't support scrub + self._scrub_support = True + try: + self.g.available(['scrub']) + except RuntimeError: + self._scrub_support = False + def collect_metadata(self): """Collect metadata about the OS""" try: