netgod / rpms / anaconda

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