nalika / rpms / grub2

Forked from rpms/grub2 2 years ago
Clone

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

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