zengxyz / rpms / anaconda

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