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