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

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