zengxyz / rpms / anaconda

Forked from rpms/anaconda 3 months ago
Clone
Karanbir Singh b30266
diff -uNr anaconda-21.48.22.56__orig/pyanaconda/bootloader.py anaconda-21.48.22.56/pyanaconda/bootloader.py
Karanbir Singh b30266
--- anaconda-21.48.22.56__orig/pyanaconda/bootloader.py	2015-10-29 14:23:19.000000000 +0000
Karanbir Singh b30266
+++ anaconda-21.48.22.56/pyanaconda/bootloader.py	2015-12-07 17:23:41.013000000 +0000
Karanbir Singh b30266
@@ -1411,7 +1411,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"]
Karanbir Singh b30266
@@ -2105,7 +2105,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"]