dcavalca / rpms / grub2

Forked from rpms/grub2 3 years ago
Clone

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

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