summaryrefslogtreecommitdiffstats
path: root/fsset.py
diff options
context:
space:
mode:
authormsivak <msivak>2007-08-17 14:20:44 +0000
committermsivak <msivak>2007-08-17 14:20:44 +0000
commit70b7adb020841583ee06e85bb5f14403827fbc5d (patch)
tree18d10a56bcf21b22e1e79100e8c0a4c70f2128fd /fsset.py
parent703ab4ed04634d032a50760c129aa8e5f41574ca (diff)
downloadanaconda-70b7adb020841583ee06e85bb5f14403827fbc5d.tar.gz
anaconda-70b7adb020841583ee06e85bb5f14403827fbc5d.tar.xz
anaconda-70b7adb020841583ee06e85bb5f14403827fbc5d.zip
* iutil.py (makeDriveDeviceNodes): Fix number of created scsi
partition device files (#241439). * fsset.py (DevDevice.setupDevice): Better error reporting and when using DevDevice class, check for existence of device file. * rescue.py (runRescue): Better error reporting.
Diffstat (limited to 'fsset.py')
-rw-r--r--fsset.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/fsset.py b/fsset.py
index 049459744..9aa3a7fff 100644
--- a/fsset.py
+++ b/fsset.py
@@ -1602,7 +1602,7 @@ MAILADDR root
continue
try:
- log.info("trying to mount %s on %s" %(entry.device.getDevice(), entry.mountpoint))
+ log.info("trying to mount %s on %s" %(entry.device.setupDevice(), entry.mountpoint,))
entry.mount(anaconda.rootPath, readOnly = readOnly)
self.mountcount = self.mountcount + 1
except OSError, (num, msg):
@@ -1625,6 +1625,7 @@ MAILADDR root
"Press <Enter> to exit the "
"installer.") % (entry.mountpoint,
msg))
+ log.error("OSError: (%d) %s" % (num, msg) )
sys.exit(0)
except SystemError, (num, msg):
if raiseErrors:
@@ -1664,6 +1665,7 @@ MAILADDR root
self.messageWindow(_("Error"), errStr)
+ log.error("SystemError: (%d) %s" % (num, msg) )
sys.exit(0)
self.makeLVMNodes(anaconda.rootPath)
@@ -1951,7 +1953,10 @@ class DevDevice(Device):
return self.device
def setupDevice(self, chroot='/', devPrefix='/dev'):
- return "/dev/%s" %(self.getDevice(),)
+ #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):
# XXX usedMajors does not take in account any EXISTING md device