summaryrefslogtreecommitdiffstats
path: root/fsset.py
diff options
context:
space:
mode:
authorDavid Cantrell <dcantrell@redhat.com>2005-12-19 22:11:08 +0000
committerDavid Cantrell <dcantrell@redhat.com>2005-12-19 22:11:08 +0000
commit14b0a69b5fa359c272e9a8b93ec6d63914ab857c (patch)
tree92bd58b7a48705bd7098731d13be2c9e4bcd508b /fsset.py
parent55232e33fb351c5bcb95b99d9a54cc1b585271be (diff)
downloadanaconda-14b0a69b5fa359c272e9a8b93ec6d63914ab857c.tar.gz
anaconda-14b0a69b5fa359c272e9a8b93ec6d63914ab857c.tar.xz
anaconda-14b0a69b5fa359c272e9a8b93ec6d63914ab857c.zip
* fsset.py (devify): Make sure /etc/fstab has accepted standards
for the pseudo filesystems (#176149).
Diffstat (limited to 'fsset.py')
-rw-r--r--fsset.py11
1 files changed, 9 insertions, 2 deletions
diff --git a/fsset.py b/fsset.py
index 11236e2ca..31c23f554 100644
--- a/fsset.py
+++ b/fsset.py
@@ -92,9 +92,16 @@ def mountCompare(a, b):
return 0
def devify(device):
- if device != "none" and device[0] != '/':
+ if device == "proc" or device == "devpts":
+ return device
+ elif device == "sys":
+ return "sysfs"
+ elif device == "shm":
+ return "tmpfs"
+ elif device != "none" and device[0] != '/':
return "/dev/" + device
- return device
+ else:
+ return device
class LabelFactory:
def __init__(self):