diff options
author | Chris Lumens <clumens@redhat.com> | 2007-04-17 21:29:32 +0000 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2007-04-17 21:29:32 +0000 |
commit | fc4aa5170853e71bd0006268ad8b47a6d6d49846 (patch) | |
tree | 90b8c6d6f0e6f61ff7ef6a3ab1b89d148beecc0f | |
parent | d472197f9a4fc3bc12eaadb2fa08f541873e7751 (diff) | |
download | anaconda-fc4aa5170853e71bd0006268ad8b47a6d6d49846.tar.gz anaconda-fc4aa5170853e71bd0006268ad8b47a6d6d49846.tar.xz anaconda-fc4aa5170853e71bd0006268ad8b47a6d6d49846.zip |
Print a better error message when devices are mentioned by name instead of by
label and we can't mount them.
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | fsset.py | 26 |
2 files changed, 21 insertions, 9 deletions
@@ -36,6 +36,10 @@ libata, default to writing out a new bootloader config and take away the update option (#229704). + * fsset.py (FileSystemSet.mountFilesystems): Print a better error + message when devices are mentioned by name instead of by label and we + can't mount them. + 2007-04-17 Paul Nasrat <pnasrat@redhat.com> * isys/isys.py: Ignore ps3 flash (#236481) @@ -1715,15 +1715,23 @@ MAILADDR root else: continue else: - self.messageWindow(_("Error"), - _("Error mounting device %s as %s: " - "%s\n\n" - "This most likely means this " - "partition has not been formatted." - "\n\n" - "Press OK to reboot your system.") - % (entry.device.getDevice(), - entry.mountpoint, msg)) + if anaconda.id.getUpgrade() and not entry.getLabel(): + errStr = _("Error mounting device %s as %s: " + "%s\n\n" + "Devices in /etc/fstab should be " + "specified by label, not by device name." + "\n\n" + "Press OK to reboot your system.") % (entry.device.getDevice(), entry.mountpoint, msg) + else: + errStr = _("Error mounting device %s as %s: " + "%s\n\n" + "This most likely means this " + "partition has not been formatted." + "\n\n" + "Press OK to reboot your system.") % (entry.device.getDevice(), entry.mountpoint, msg) + + self.messageWindow(_("Error"), errStr) + sys.exit(0) self.makeLVMNodes(anaconda.rootPath) |