diff options
author | Jeremy Katz <katzj@redhat.com> | 2002-06-21 16:51:28 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2002-06-21 16:51:28 +0000 |
commit | 69316303f95fef331f620cdafc4cf3533d410986 (patch) | |
tree | 383302e44d66dc6d31fd66913e0eb66a4df3854b /fsset.py | |
parent | cfd62a134c57c7adecf0fc9ce3b0c70717cbb607 (diff) | |
download | anaconda-69316303f95fef331f620cdafc4cf3533d410986.tar.gz anaconda-69316303f95fef331f620cdafc4cf3533d410986.tar.xz anaconda-69316303f95fef331f620cdafc4cf3533d410986.zip |
we create all the devices in /dev now, take advantage of it and get lvm working for free
Diffstat (limited to 'fsset.py')
-rw-r--r-- | fsset.py | 17 |
1 files changed, 15 insertions, 2 deletions
@@ -1436,6 +1436,19 @@ class Device: def getName(self): return self.__class__.__name__ +class DevDevice(Device): + """Device with a device node rooted in /dev that we just always use + the pre-created device node for.""" + def __init__(self, dev): + Device.__init__(self) + self.device = dev + + def getDevice(self): + return "/dev/%s" %(self.device,) + + def setupDevice(self, chroot='/', devPrefix='/dev'): + return self.getDevice() + class RAIDDevice(Device): # XXX usedMajors does not take in account any EXISTING md device # on the system for installs. We need to examine all partitions @@ -1749,9 +1762,9 @@ def makeDevice(dev): spares=len(devices) - numActive, existing=1) except KeyError: - device = PartitionDevice(dev) + device = DevDevice(dev) else: - device = PartitionDevice(dev) + device = DevDevice(dev) return device # XXX fix RAID |