d11c838
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
d11c838
From: Nicolas Frayer <nfrayer@redhat.com>
d11c838
Date: Tue, 19 Dec 2023 16:52:05 +0100
d11c838
Subject: [PATCH] normal: Remove grub_env_set prefix in grub_try_normal_prefix
d11c838
d11c838
Commit de735a453aa35 added a grub_env_set where the prefix contains
d11c838
the arch name in the pathname. This create issues when trying to
d11c838
load modules using this prefix as the pathname contains a "doubled"
d11c838
arch name in it (ie .../powerpc-ieee1275/powerpc-ieee1275/).
d11c838
d11c838
Signed-off-by: Nicolas Frayer <nfrayer@redhat.com>
d11c838
---
d11c838
 grub-core/normal/main.c | 1 -
d11c838
 1 file changed, 1 deletion(-)
d11c838
d11c838
diff --git a/grub-core/normal/main.c b/grub-core/normal/main.c
d11c838
index d59145f861d5..bac7b8a0e1d8 100644
d11c838
--- a/grub-core/normal/main.c
d11c838
+++ b/grub-core/normal/main.c
d11c838
@@ -372,7 +372,6 @@ grub_try_normal_prefix (const char *prefix)
d11c838
            file = grub_file_open (config, GRUB_FILE_TYPE_CONFIG);
d11c838
            if (file)
d11c838
              {
d11c838
-               grub_env_set ("prefix", prefix);
d11c838
                grub_file_close (file);
d11c838
                err = GRUB_ERR_NONE;
d11c838
              }