summaryrefslogtreecommitdiffstats
path: root/platform.py
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2009-11-24 11:13:29 -0500
committerChris Lumens <clumens@redhat.com>2009-11-24 11:34:58 -0500
commit011e835f0350c8bd3a9de6720be0792844e1eaf4 (patch)
tree49cd72c329c20456dd52665a3215a996207ac1bc /platform.py
parent252701734c25cbc7356064f45b809f68b2a4fcdf (diff)
downloadanaconda-011e835f0350c8bd3a9de6720be0792844e1eaf4.tar.gz
anaconda-011e835f0350c8bd3a9de6720be0792844e1eaf4.tar.xz
anaconda-011e835f0350c8bd3a9de6720be0792844e1eaf4.zip
Require /boot to be on a GPT or MSDOS disk label on x86 (#540588).
Diffstat (limited to 'platform.py')
-rw-r--r--platform.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/platform.py b/platform.py
index 2a4b9ea49..8d15da62b 100644
--- a/platform.py
+++ b/platform.py
@@ -220,6 +220,12 @@ class EFI(Platform):
if req.format.type != "efi":
errors.append(_("/boot/efi is not EFI."))
+ disk = req.disk.format.partedDisk
+
+ # Check that we've got a correct disk label.
+ if not disk.type in ["gpt", "msdos"]:
+ errors.append(_("%s must have a GPT or MSDOS disk label.") % req.disk.name)
+
return errors
def setDefaultPartitioning(self):