netgod / rpms / anaconda

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