netgod / rpms / anaconda

Forked from rpms/anaconda 2 years ago
Clone
f4150a
diff -uNr anaconda-19.31.79__orig/pyanaconda/bootloader.py anaconda-19.31.79/pyanaconda/bootloader.py
f4150a
--- anaconda-19.31.79__orig/pyanaconda/bootloader.py	2014-04-29 01:45:59.000000000 +0100
f4150a
+++ anaconda-19.31.79/pyanaconda/bootloader.py	2014-06-30 17:19:19.197386280 +0100
f4150a
@@ -1404,7 +1404,7 @@
f4150a
 
f4150a
     @property
f4150a
     def stage2_format_types(self):
f4150a
-        if productName.startswith("Red Hat "):
f4150a
+        if productName.startswith("Red Hat ") or productName.startswith("CentOS"):
f4150a
             return ["xfs", "ext4", "ext3", "ext2", "btrfs"]
f4150a
         else:
f4150a
             return ["ext4", "ext3", "ext2", "btrfs", "xfs"]
f4150a
@@ -2063,7 +2063,7 @@
f4150a
 
f4150a
     @property
f4150a
     def stage2_format_types(self):
f4150a
-        if productName.startswith("Red Hat "):
f4150a
+        if productName.startswith("Red Hat ") or productName.startswith("CentOS"):
f4150a
             return ["xfs", "ext4", "ext3", "ext2"]
f4150a
         else:
f4150a
             return ["ext4", "ext3", "ext2", "xfs"]