netgod / rpms / anaconda

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