summaryrefslogtreecommitdiffstats
path: root/iw
diff options
context:
space:
mode:
authormsivak <msivak>2007-09-21 06:44:24 +0000
committermsivak <msivak>2007-09-21 06:44:24 +0000
commitd118fea3d127d1be2e4fee8b69dae7b59f37d6db (patch)
tree5d72423045f89ade34bf1ada35649b60424e28c1 /iw
parentf3f7ac8f14510c96da77cf5c212bb41e973320f4 (diff)
downloadanaconda-d118fea3d127d1be2e4fee8b69dae7b59f37d6db.tar.gz
anaconda-d118fea3d127d1be2e4fee8b69dae7b59f37d6db.tar.xz
anaconda-d118fea3d127d1be2e4fee8b69dae7b59f37d6db.zip
Unsafe bootloader defaults (#243556, #243799)
2007-09-21 Martin Sivak <msivak@redhat.com> * bootloader.py (bootloaderSetupChoices): Honor the "Boot this instalation from" choice when figuring out the drive order for bootloader (#243556, #243799). * iw/autopart_type.py (PartitionTypeWindow): Show warning when Boot from media is not allowed in Use this drive for instalation. (#243799)
Diffstat (limited to 'iw')
-rw-r--r--iw/autopart_type.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/iw/autopart_type.py b/iw/autopart_type.py
index 1e424ce48..7c20fc1c0 100644
--- a/iw/autopart_type.py
+++ b/iw/autopart_type.py
@@ -78,6 +78,13 @@ class PartitionTypeWindow(InstallWindow):
raise gui.StayOnScreen
defboot = self.bootcombo.get_model().get_value(defiter, 1)
+
+ if not defboot in allowdrives:
+ msg = _("Do you really want to boot from disk which is not used for instalation?")
+ rc = self.intf.messageWindow(_("Warning"), msg, type="yesno", default="no", custom_icon ="warning")
+ if not rc:
+ raise gui.StayOnScreen
+
self.anaconda.id.bootloader.drivelist.remove(defboot)
self.anaconda.id.bootloader.drivelist.insert(0, defboot)