dpolovinkin / rpms / anaconda

Forked from rpms/anaconda 3 years ago
Clone

Blame SOURCES/anaconda-centos-bootfs-default-to-xfs.patch

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