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 /fsset.py | |
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.
Diffstat (limited to 'fsset.py')
-rw-r--r-- | fsset.py | 26 |
1 files changed, 17 insertions, 9 deletions
@@ -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) |