Blame SOURCES/0001-Set-envFile-from-env-when-bootloader-is-not-specifie.patch

24fce8
From b5c0a31ae38c2c42f0dea8c2d7282694f020e976 Mon Sep 17 00:00:00 2001
24fce8
From: "Brian C. Lane" <bcl@redhat.com>
24fce8
Date: Mon, 13 Apr 2015 13:57:33 -0700
24fce8
Subject: [PATCH 01/55] Set envFile from --env when bootloader is not specified
24fce8
24fce8
---
24fce8
 grubby.c | 6 ++++--
24fce8
 1 file changed, 4 insertions(+), 2 deletions(-)
24fce8
24fce8
diff --git a/grubby.c b/grubby.c
24fce8
index d4ebb86168d..53fe9250e27 100644
24fce8
--- a/grubby.c
24fce8
+++ b/grubby.c
24fce8
@@ -4423,9 +4423,11 @@ int main(int argc, const char ** argv) {
24fce8
     }
24fce8
 
24fce8
     if (!cfi) {
24fce8
-        if (grub2FindConfig(&grub2ConfigType))
24fce8
+        if (grub2FindConfig(&grub2ConfigType)) {
24fce8
 	    cfi = &grub2ConfigType;
24fce8
-	else
24fce8
+	    if (envPath)
24fce8
+		cfi->envFile = envPath;
24fce8
+        } else
24fce8
       #ifdef __ia64__
24fce8
 	    cfi = &eliloConfigType;
24fce8
       #elif __powerpc__
24fce8
-- 
24fce8
2.17.1
24fce8