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 <simonp...@gmail.com> Reviewed-by: Daniel Kiper <daniel.ki...@oracle.com> --- grub-core/disk/lvm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/grub-core/disk/lvm.c b/grub-core/disk/lvm.c index abb5b12ae..02e359827 100644 --- a/grub-core/disk/lvm.c +++ b/grub-core/disk/lvm.c @@ -811,6 +811,8 @@ grub_lvm_detect (grub_disk_t disk, */ 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) { -- 2.39.5 _______________________________________________ Grub-devel mailing list Grub-devel@gnu.org https://lists.gnu.org/mailman/listinfo/grub-devel