Commit 6714256c authored by Iustin Pop's avatar Iustin Pop
Browse files

lvmstrap: add more excluded FS types

Also moves the list of excluded types to the top level and make it a
Signed-off-by: default avatarIustin Pop <>
Reviewed-by: default avatarMichael Hanselmann <>
parent 1ca54b6e
......@@ -66,6 +66,18 @@ SUPPORTED_TYPES = [
#: Excluded filesystem types
EXCLUDED_FS = frozenset([
class Error(Exception):
"""Generic exception"""
......@@ -460,7 +472,7 @@ def GetMountInfo():
for line in mountlines:
_, mountpoint, fstype, _ = line.split(None, 3)
# fs type blacklist
if fstype in ["nfs", "nfs4", "autofs", "tmpfs", "proc", "sysfs"]:
if fstype in EXCLUDED_FS:
dev = os.stat(mountpoint).st_dev
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment