diff --git a/library/blivet.py b/library/blivet.py index 0c2354ad..359ee7d4 100644 --- a/library/blivet.py +++ b/library/blivet.py @@ -246,6 +246,9 @@ def manage(self): if self._device.exists: self._reformat() + if self.ultimately_present and self._volume['mount_point'] and not self._device.format.mountable: + raise BlivetAnsibleError("volume '%s' has a mount point but no mountable file system" % self._volume['name']) + # schedule resize if appropriate if self._device.exists and self._volume['size']: self._resize()