]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
disk/lvm: Add support for cachevol LV
authorPatrick Plenefisch <simonpatp@gmail.com>
Mon, 11 Nov 2024 18:18:39 +0000 (13:18 -0500)
committerDaniel Kiper <daniel.kiper@oracle.com>
Wed, 5 Mar 2025 20:27:54 +0000 (21:27 +0100)
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 <simonpatp@gmail.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
grub-core/disk/lvm.c

index 14839a65b84f741e860e23481a17dd39ca377159..1f8e5d76d9527205e4b1152d2603b4050c1de4d1 100644 (file)
@@ -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;