zengxyz / rpms / anaconda

Forked from rpms/anaconda 3 months ago
Clone
95c740
diff -uNr anaconda-21.48.22.56__orig/pyanaconda/bootloader.py anaconda-21.48.22.56/pyanaconda/bootloader.py
95c740
--- anaconda-21.48.22.56__orig/pyanaconda/bootloader.py	2015-10-29 14:23:19.000000000 +0000
95c740
+++ anaconda-21.48.22.56/pyanaconda/bootloader.py	2015-12-07 17:23:41.013000000 +0000
95c740
@@ -1411,7 +1411,7 @@
33c795
 
33c795
     @property
33c795
     def stage2_format_types(self):
33c795
-        if productName.startswith("Red Hat "):
33c795
+        if productName.startswith("Red Hat ") or productName.startswith("CentOS"):
33c795
             return ["xfs", "ext4", "ext3", "ext2", "btrfs"]
33c795
         else:
33c795
             return ["ext4", "ext3", "ext2", "btrfs", "xfs"]
95c740
@@ -2105,7 +2105,7 @@
33c795
 
33c795
     @property
33c795
     def stage2_format_types(self):
33c795
-        if productName.startswith("Red Hat "):
33c795
+        if productName.startswith("Red Hat ") or productName.startswith("CentOS"):
33c795
             return ["xfs", "ext4", "ext3", "ext2"]
33c795
         else:
33c795
             return ["ext4", "ext3", "ext2", "xfs"]