- # create character device nodes if we're not running in test mode - have
- # to do this early sine it's used for Synaptics, etc.
- if not flags.test:
- iutil.makeCharDeviceNodes()
-
# this lets install classes force text mode instlls
if instClass.forceTextMode:
stdoutLog.info(_("Install class forcing text mode installation"))
@@ -841,10 +833,6 @@ if __name__ == "__main__":
else:
anaconda.intf.messageWindow("Unknown monitor", msg)
- # create device nodes for detected devices if we're not running in test mode
- if not flags.test and flags.setupFilesystems:
- iutil.makeDriveDeviceNodes()
-
# imports after setting up the path
if anaconda.methodstr:
anaconda.setMethod(instClass)
diff --git a/dmraid.py b/dmraid.py
index 82f5f8e..95cc6b2 100644
--- a/dmraid.py
+++ b/dmraid.py
@@ -122,8 +122,7 @@ def scanForRaid(drives, degradedOk=False):
probeDrives = []
for d in drives:
- dp = isys.makeDevInode(d)
- probeDrives.append(dp)
+ probeDrives.append(d)
probeDrives = []
for d in drives:
- dp = isys.makeDevInode(d)
- probeDrives.append(dp)
+ probeDrives.append(d)
import block as _block
oldPath = _block.getBdevidPath()
diff --git a/fsset.py b/fsset.py
index 5dee46f..ec03c97 100644
--- a/fsset.py
+++ b/fsset.py
@@ -552,8 +552,6 @@ class extFileSystem(FileSystemType):
def getMinimumSize(self, device):
"""Return the minimum filesystem size in megabytes"""
devicePath = "/dev/%s" % (device,)
- if not os.path.exists(devicePath):
- isys.makeDevInode(device, devicePath)
# FIXME: it'd be nice if we didn't have to parse this out ourselves
buf = iutil.execWithCapture("dumpe2fs",
@@ -634,7 +632,7 @@ class extFileSystem(FileSystemType):
devicePath = entry.device.setupDevice(chroot)
# if no journal, don't turn off the fsck
- if not isys.ext2HasJournal(devicePath, makeDevNode = 0):
+ if not isys.ext2HasJournal(devicePath):
return
# if journal already exists skip
- if isys.ext2HasJournal(devicePath, makeDevNode = 0):
+ if isys.ext2HasJournal(devicePath):
log.info("Skipping migration of %s, has a journal already.
" % devicePath)
return
@@ -676,7 +674,7 @@ class ext2FileSystem(extFileSystem):
# XXX this should never happen, but appears to have done
# so several times based on reports in bugzilla.
# At least we can avoid leaving them with a system which won't boot
- if not isys.ext2HasJournal(devicePath, makeDevNode = 0):
+ if not isys.ext2HasJournal(devicePath):
log.warning("Migration of %s attempted but no journal exists after "
"running tune2fs.
" % (devicePath))
if message:
@@ -965,8 +963,6 @@ class NTFSFileSystem(FileSystemType):
def getMinimumSize(self, device):
"""Return the minimum filesystem size in megabytes"""
devicePath = "/dev/%s" % (device,)
- if not os.path.exists(devicePath):
- isys.makeDevInode(device, devicePath)
@@ -2232,7 +2226,6 @@ class DevDevice(Device):
def setupDevice(self, chroot='/', devPrefix='/dev'):
#We use precreated device but we have to make sure that the device exists
path = '/dev/%s' % (self.getDevice(),)
- isys.makeDevInode(self.getDevice(), path)
return path
class RAIDDevice(Device):
@@ -2353,9 +2346,6 @@ class RAIDDevice(Device):
def devify(x):
return "/dev/%s" %(x,)
- node = "%s/%s" % (devPrefix, self.device)
- isys.makeDevInode(self.device, node)
-
if not self.isSetup:
for device in self.members:
pd = PartitionDevice(device)
@@ -2500,7 +2490,6 @@ class PartitionDevice(Device):
- makeDevInode(mdDevice, mdInode)
- makeDevInode(aMember, mbrInode)
-
minor = os.minor(os.stat(mdInode).st_rdev)
try:
info = _getRaidInfo(mbrInode)
@@ -209,7 +205,6 @@ def wipeRaidSB(device):
# need to exist to begin with.
# @return A RAID superblock in its raw on-disk format.
def raidsb(mdDevice):
- makeDevInode(mdDevice, "/dev/%s" % mdDevice)
return raidsbFromDevice("/dev/%s" % mdDevice)
## Get the superblock from a RAID device.
@@ -311,14 +306,6 @@ def mount(device, location, fstype = "ext2", readOnly = 0, bindMount = 0, remoun
# mount without making a device node. If that still fails, the caller
# will have to deal with the exception.
# We note whether or not we created a node so we can clean up later.
- createdNode = 0
- if device and device != "none" and device[0] != "/":
-
- try:
- makeDevInode (device)
- createdNode = 1
- except SystemError:
- pass
if mountCount.has_key(location) and mountCount[location] > 0:
mountCount[location] = mountCount[location] + 1
@@ -330,10 +317,6 @@ def mount(device, location, fstype = "ext2", readOnly = 0, bindMount = 0, remoun
if not rc:
mountCount[location] = 1
- # did we create a node, if so remove
- if createdNode:
- os.unlink(device)
-
return rc
## Unmount a filesystem, similar to the umount system call.
@@ -768,13 +751,8 @@ def _readXFSLabel_int(device):