diff options
author | Chris Lumens <clumens@redhat.com> | 2013-01-16 16:29:55 -0500 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2013-01-16 16:29:55 -0500 |
commit | 3dc66e9ada5b99e9d7f95e3e2e8ccbcda24ae794 (patch) | |
tree | 145325aa7f27480cbc1d1da852b8900a413ee5bb /pyanaconda/bootloader.py | |
parent | 999fc6af94eac2db117d9466e6ef372e895d218f (diff) | |
download | anaconda-3dc66e9ada5b99e9d7f95e3e2e8ccbcda24ae794.tar.gz anaconda-3dc66e9ada5b99e9d7f95e3e2e8ccbcda24ae794.tar.xz anaconda-3dc66e9ada5b99e9d7f95e3e2e8ccbcda24ae794.zip |
Update default fs type code (#855401).
Diffstat (limited to 'pyanaconda/bootloader.py')
-rw-r--r-- | pyanaconda/bootloader.py | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/pyanaconda/bootloader.py b/pyanaconda/bootloader.py index 10415e131..9238e880d 100644 --- a/pyanaconda/bootloader.py +++ b/pyanaconda/bootloader.py @@ -232,13 +232,16 @@ class BootLoader(object): stage2_raid_levels = [] stage2_raid_metadata = [] stage2_raid_member_types = [] - stage2_format_types = ["ext4", "ext3", "ext2"] stage2_mountpoints = ["/boot", "/"] stage2_bootable = False stage2_must_be_primary = True stage2_description = N_("/boot filesystem") stage2_max_end_mb = 2 * 1024 * 1024 + @property + def stage2_format_types(self): + return ["ext4", "ext3", "ext2"] + # this is so stupid... global_preserve_args = ["speakup_synth", "apic", "noapic", "apm", "ide", "noht", "acpi", "video", "pci", "nodmraid", @@ -1351,12 +1354,18 @@ class GRUB2(GRUB): can_update = True # requirements for boot devices - stage2_format_types = ["ext4", "ext3", "ext2", "btrfs", "xfs"] stage2_device_types = ["partition", "mdarray", "lvmlv", "btrfs volume", "btrfs subvolume"] stage2_raid_levels = [mdraid.RAID0, mdraid.RAID1, mdraid.RAID4, mdraid.RAID5, mdraid.RAID6, mdraid.RAID10] + @property + def stage2_format_types(self): + if productName.startswith("Red Hat Enterprise Linux"): + return ["xfs", "ext4", "ext3", "ext2", "btrfs"] + else: + return ["ext4", "ext3", "ext2", "btrfs", "xfs"] + def __init__(self, platform=None): super(GRUB2, self).__init__(platform=platform) self.boot_args.add("$([ -x /usr/sbin/rhcrashkernel-param ] && "\ @@ -1999,6 +2008,13 @@ class ZIPL(BootLoader): stage2_device_types = ["partition", "mdarray", "lvmlv"] stage2_device_raid_levels = [mdraid.RAID1] + @property + def stage2_format_types(self): + if productName.startswith("Red Hat Enterprise Linux"): + return ["xfs", "ext4", "ext3", "ext2"] + else: + return ["ext4", "ext3", "ext2", "xfs"] + image_label_attr = "short_label" preserve_args = ["cio_ignore"] |