netgod / rpms / anaconda

Forked from rpms/anaconda 2 years ago
Clone
Blob Blame History Raw
From 34d53918f0ff053c5d0b3a50166bda9b9d6da913 Mon Sep 17 00:00:00 2001
From: Jim Perrin <jperrin@centos.org>
Date: Fri, 20 Nov 2015 15:43:53 -0600
Subject: [PATCH] bootfs default to xfs

---
 pyanaconda/bootloader.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pyanaconda/bootloader.py b/pyanaconda/bootloader.py
index ff9c2d5..1dd274a 100644
--- a/pyanaconda/bootloader.py
+++ b/pyanaconda/bootloader.py
@@ -1411,7 +1411,7 @@ class GRUB2(GRUB):
 
     @property
     def stage2_format_types(self):
-        if productName.startswith("Red Hat "):
+        if productName.startswith("CentOS "):
             return ["xfs", "ext4", "ext3", "ext2", "btrfs"]
         else:
             return ["ext4", "ext3", "ext2", "btrfs", "xfs"]
@@ -2105,7 +2105,7 @@ class ZIPL(BootLoader):
 
     @property
     def stage2_format_types(self):
-        if productName.startswith("Red Hat "):
+        if productName.startswith("CentOS "):
             return ["xfs", "ext4", "ext3", "ext2"]
         else:
             return ["ext4", "ext3", "ext2", "xfs"]
-- 
1.8.3.1