nalika / rpms / grub2

Forked from rpms/grub2 2 years ago
Clone

Blame SOURCES/0042-export-btrfs_subvol-and-btrfs_subvolid.patch

8e15ce
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
8e15ce
From: Michael Chang <mchang@suse.com>
8e15ce
Date: Wed, 18 Dec 2013 09:57:04 +0000
8e15ce
Subject: [PATCH] export btrfs_subvol and btrfs_subvolid
8e15ce
8e15ce
We should export btrfs_subvol and btrfs_subvolid to have both visible
8e15ce
to subsidiary configuration files loaded using configfile.
8e15ce
8e15ce
Signed-off-by: Michael Chang <mchang@suse.com>
8e15ce
---
8e15ce
 grub-core/fs/btrfs.c | 2 ++
8e15ce
 1 file changed, 2 insertions(+)
8e15ce
8e15ce
diff --git a/grub-core/fs/btrfs.c b/grub-core/fs/btrfs.c
b35c50
index f1fff7385b..ad1b56b716 100644
8e15ce
--- a/grub-core/fs/btrfs.c
8e15ce
+++ b/grub-core/fs/btrfs.c
8e15ce
@@ -2714,6 +2714,8 @@ GRUB_MOD_INIT (btrfs)
8e15ce
                                subvol_set_env);
8e15ce
   grub_register_variable_hook ("btrfs_subvolid", subvolid_get_env,
8e15ce
                                subvolid_set_env);
8e15ce
+  grub_env_export ("btrfs_subvol");
8e15ce
+  grub_env_export ("btrfs_subvolid");
8e15ce
 }
8e15ce
 
8e15ce
 GRUB_MOD_FINI (btrfs)