2019-09-30 10:52:04 -04:00
|
|
|
From: Michael Chang <mchang@suse.com>
|
2024-03-04 03:17:58 +00:00
|
|
|
Subject: export btrfs_subvol and btrfs_subvolid
|
2019-09-30 10:52:04 -04:00
|
|
|
|
2024-03-04 03:17:58 +00:00
|
|
|
We should export btrfs_subvol and btrfs_subvolid to have both visible
|
|
|
|
|
to subsidiary configuration files loaded using configfile.
|
2019-09-30 10:52:04 -04:00
|
|
|
|
|
|
|
|
Signed-off-by: Michael Chang <mchang@suse.com>
|
|
|
|
|
|
|
|
|
|
--- a/grub-core/fs/btrfs.c
|
|
|
|
|
+++ b/grub-core/fs/btrfs.c
|
2024-03-04 03:17:58 +00:00
|
|
|
@@ -2931,6 +2931,8 @@
|
2019-09-30 10:52:04 -04: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)
|