2018-07-12 14:56:34 +00:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
2017-06-16 19:31:32 +00:00
|
|
|
From: Michael Chang <mchang@suse.com>
|
|
|
|
Date: Wed, 18 Dec 2013 09:57:04 +0000
|
2018-07-10 18:39:10 +00:00
|
|
|
Subject: [PATCH] export btrfs_subvol and btrfs_subvolid
|
2017-06-16 19:31:32 +00:00
|
|
|
|
|
|
|
We should export btrfs_subvol and btrfs_subvolid to have both visible
|
|
|
|
to subsidiary configuration files loaded using configfile.
|
|
|
|
|
|
|
|
Signed-off-by: Michael Chang <mchang@suse.com>
|
|
|
|
---
|
|
|
|
grub-core/fs/btrfs.c | 2 ++
|
|
|
|
1 file changed, 2 insertions(+)
|
|
|
|
|
|
|
|
diff --git a/grub-core/fs/btrfs.c b/grub-core/fs/btrfs.c
|
2022-04-18 21:58:58 +00:00
|
|
|
index f1fff7385b..ad1b56b716 100644
|
2017-06-16 19:31:32 +00:00
|
|
|
--- a/grub-core/fs/btrfs.c
|
|
|
|
+++ b/grub-core/fs/btrfs.c
|
2021-03-12 21:54:28 +00:00
|
|
|
@@ -2714,6 +2714,8 @@ GRUB_MOD_INIT (btrfs)
|
2017-06-16 19:31:32 +00:00
|
|
|
subvol_set_env);
|
|
|
|
grub_register_variable_hook ("btrfs_subvolid", subvolid_get_env,
|
|
|
|
subvolid_set_env);
|
|
|
|
+ grub_env_export ("btrfs_subvol");
|
|
|
|
+ grub_env_export ("btrfs_subvolid");
|
|
|
|
}
|
|
|
|
|
|
|
|
GRUB_MOD_FINI (btrfs)
|