diff --git a/qubes/storage/reflink.py b/qubes/storage/reflink.py index 795a7ffc..4a4812a3 100644 --- a/qubes/storage/reflink.py +++ b/qubes/storage/reflink.py @@ -61,14 +61,14 @@ class ReflinkPool(qubes.storage.Pool): def __init__(self, dir_path, setup_check='yes', revisions_to_keep=1, **kwargs): super().__init__(revisions_to_keep=revisions_to_keep, **kwargs) + self._setup_check = qubes.property.bool(None, None, setup_check) self._volumes = {} self.dir_path = os.path.abspath(dir_path) - self.setup_check = qubes.property.bool(None, None, setup_check) @_coroutinized def setup(self): created = _make_dir(self.dir_path) - if self.setup_check and not is_supported(self.dir_path): + if self._setup_check and not is_supported(self.dir_path): if created: _remove_empty_dir(self.dir_path) raise qubes.storage.StoragePoolException(