summaryrefslogtreecommitdiffstats
path: root/storage/__init__.py
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2009-05-21 15:17:23 -0400
committerChris Lumens <clumens@redhat.com>2009-05-21 16:40:09 -0400
commitfbda3bde2593e1328779d612fb65bdd65e877406 (patch)
treec3233f45e4552376ebb5077435ac4ca7791be809 /storage/__init__.py
parentcbbb0d272deb3f37a4b4be3361a4c0e74d206804 (diff)
downloadanaconda-fbda3bde2593e1328779d612fb65bdd65e877406.tar.gz
anaconda-fbda3bde2593e1328779d612fb65bdd65e877406.tar.xz
anaconda-fbda3bde2593e1328779d612fb65bdd65e877406.zip
Move /boot checks from sanityCheck into Platform.checkBootRequest.
Diffstat (limited to 'storage/__init__.py')
-rw-r--r--storage/__init__.py44
1 files changed, 1 insertions, 43 deletions
diff --git a/storage/__init__.py b/storage/__init__.py
index 336353067..f2afb07a9 100644
--- a/storage/__init__.py
+++ b/storage/__init__.py
@@ -873,49 +873,7 @@ class Storage(object):
warnings.append(_("Installing on a FireWire device. This may "
"or may not produce a working system."))
- if not boot:
- errors.append(_("You have not created a boot partition."))
-
- if (boot and boot.type == "mdarray" and
- boot.level != 1):
- errors.append(_("Bootable partitions can only be on RAID1 "
- "devices."))
-
- # can't have bootable partition on LV
- if boot and boot.type == "lvmlv":
- errors.append(_("Bootable partitions cannot be on a "
- "logical volume."))
-
- # most arches can't have boot on RAID
- if boot and boot.type == "mdarray" and not self.anaconda.platform.supportsMdRaidBoot:
- errors.append(_("Bootable partitions cannot be on a RAID "
- "device."))
-
- # Lots of filesystems types don't support /boot.
- if boot and not boot.format.bootable:
- errors.append(_("Bootable partitions cannot be on an %s "
- "filesystem.") % boot.format.name)
-
- # vfat /boot is insane.
- if (boot and boot == root and boot.format.type == "vfat"):
- errors.append(_("Bootable partitions cannot be on an %s "
- "filesystem.") % boot.format.type)
-
- if boot and boot.type == "luks/dm-crypt":
- # Handle encrypted boot on a partition.
- errors.append(_("Bootable partitions cannot be on an "
- "encrypted block device"))
- elif boot:
- # Handle encrypted boot on more complicated devices.
- for dev in map(lambda d: d.type == "luks/dm-crypt", self.devices):
- if boot in self.deviceDeps(dev):
- errors.append(_("Bootable partitions cannot be on an "
- "encrypted block device"))
-
- try:
- self.anaconda.platform.checkBootRequest(boot)
- except DeviceError as e:
- errors.append(str(e))
+ errors.extend(self.anaconda.platform.checkBootRequest(boot))
if not swaps:
warnings.append(_("You have not specified a swap partition. "