neil / rpms / anaconda

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