summaryrefslogtreecommitdiffstats
path: root/fsset.py
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2007-06-07 20:52:48 +0000
committerChris Lumens <clumens@redhat.com>2007-06-07 20:52:48 +0000
commit40728ffcc1e32eb6b5ccc0cd3b3ddb23216cf199 (patch)
tree16939b6b9ae54266fa1ec0a031c547b3e103aa35 /fsset.py
parent287401bdae1a48f900cadd4048e185ea46781734 (diff)
downloadanaconda-40728ffcc1e32eb6b5ccc0cd3b3ddb23216cf199.tar.gz
anaconda-40728ffcc1e32eb6b5ccc0cd3b3ddb23216cf199.tar.xz
anaconda-40728ffcc1e32eb6b5ccc0cd3b3ddb23216cf199.zip
Add a type for nfs mounts so they don't get deleted on upgrade (#242073).
Diffstat (limited to 'fsset.py')
-rw-r--r--fsset.py14
1 files changed, 13 insertions, 1 deletions
diff --git a/fsset.py b/fsset.py
index d10985924..81c6515f9 100644
--- a/fsset.py
+++ b/fsset.py
@@ -93,7 +93,7 @@ def getUsableLinuxFs():
return rc
def devify(device):
- if device in ["proc", "devpts", "sysfs", "tmpfs"]:
+ if device in ["proc", "devpts", "sysfs", "tmpfs"] or device.find(":") != -1:
return device
elif device == "sys":
return "sysfs"
@@ -960,6 +960,18 @@ class prepbootFileSystem(FileSystemType):
fileSystemTypeRegister(prepbootFileSystem())
+class networkFileSystem(FileSystemType):
+ def __init__(self):
+ FileSystemType.__init__(self)
+ self.formattable = 0
+ self.checked = 0
+ self.name = "nfs"
+
+ def isMountable(self):
+ return 0
+
+fileSystemTypeRegister(networkFileSystem())
+
class ForeignFileSystem(FileSystemType):
def __init__(self):
FileSystemType.__init__(self)