summaryrefslogtreecommitdiffstats
path: root/fsset.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2005-02-02 16:49:18 +0000
committerJeremy Katz <katzj@redhat.com>2005-02-02 16:49:18 +0000
commit3e0e63aa80736fa6c4946b85238285ac510b7621 (patch)
treefebe0c63856fd689b007b74fce1e44e6ece7be3e /fsset.py
parent9e33ac36deda14a22d594ae208e71187fd203f0e (diff)
downloadanaconda-3e0e63aa80736fa6c4946b85238285ac510b7621.tar.gz
anaconda-3e0e63aa80736fa6c4946b85238285ac510b7621.tar.xz
anaconda-3e0e63aa80736fa6c4946b85238285ac510b7621.zip
2005-02-02 Jeremy Katz <katzj@redhat.com>
* fsset.py (FileSystemSet.reset): Mount pseudo-filesystems with a device name other than "none" for clarity (#136820) (Device.__init__): Allow specification of device for generic devices. (readFstab): Handle the above changes when reading in fstabs
Diffstat (limited to 'fsset.py')
-rw-r--r--fsset.py17
1 files changed, 10 insertions, 7 deletions
diff --git a/fsset.py b/fsset.py
index ce18dec9c..0f4b98118 100644
--- a/fsset.py
+++ b/fsset.py
@@ -996,14 +996,17 @@ class FileSystemSet:
def reset (self):
self.entries = []
- proc = FileSystemSetEntry(Device(), '/proc', fileSystemTypeGet("proc"))
+ proc = FileSystemSetEntry(Device(device="proc"), '/proc',
+ fileSystemTypeGet("proc"))
self.add(proc)
- sys = FileSystemSetEntry(Device(), '/sys', fileSystemTypeGet("sysfs"))
+ sys = FileSystemSetEntry(Device(device="sys"), '/sys',
+ fileSystemTypeGet("sysfs"))
self.add(sys)
- pts = FileSystemSetEntry(Device(), '/dev/pts',
+ pts = FileSystemSetEntry(Device(device="devpts"), '/dev/pts',
fileSystemTypeGet("devpts"), "gid=5,mode=620")
self.add(pts)
- shm = FileSystemSetEntry(Device(), '/dev/shm', fileSystemTypeGet("tmpfs"))
+ shm = FileSystemSetEntry(Device(device="shm"), '/dev/shm',
+ fileSystemTypeGet("tmpfs"))
self.add(shm)
def verify (self):
@@ -1799,8 +1802,8 @@ class FileSystemSetEntry:
class Device:
- def __init__(self):
- self.device = "none"
+ def __init__(self, device = "none"):
+ self.device = device
self.fsoptions = {}
self.label = None
self.isSetup = 0
@@ -2315,7 +2318,7 @@ def readFstab (path, intf = None):
elif fields[0].startswith('/dev/'):
device = makeDevice(fields[0][5:])
else:
- continue
+ device = Device(device = fields[0])
# if they have a filesystem being mounted as auto, we need
# to sniff around a bit to figure out what it might be