From a16b4304a2b4f2b5ff57e247725389475d2c52dd Mon Sep 17 00:00:00 2001 From: Patrick Plenefisch Date: Mon, 11 Nov 2024 13:18:39 -0500 Subject: [PATCH] disk/lvm: Add support for cachevol LV Mark cachevol LV's as ignored features, which is true only if they are configured as "writethrough". This patch does not let GRUB boot from "writeback" cache-enabled LV's. Signed-off-by: Patrick Plenefisch Reviewed-by: Daniel Kiper --- grub-core/disk/lvm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/grub-core/disk/lvm.c b/grub-core/disk/lvm.c index 14839a65b..1f8e5d76d 100644 --- a/grub-core/disk/lvm.c +++ b/grub-core/disk/lvm.c @@ -822,6 +822,7 @@ grub_lvm_detect (grub_disk_t disk, * we can ignore for our read-only access. */ else if (grub_strncmp (p, "cache\"", sizeof ("cache\"") - 1) == 0 || + grub_strncmp (p, "cache+CACHE_USES_CACHEVOL\"", sizeof ("cache+CACHE_USES_CACHEVOL\"") - 1) == 0 || grub_strncmp (p, "integrity\"", sizeof ("integrity\"") - 1) == 0) { struct ignored_feature_lv *ignored_feature = NULL;