bug-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #60385] GRUB fails to finish parsing LVM metadata when there's a dm


From: Attila Nagy
Subject: [bug #60385] GRUB fails to finish parsing LVM metadata when there's a dm-cache metadata lv with policy settings
Date: Sun, 12 May 2024 19:00:13 -0400 (EDT)

Follow-up Comment #1, bug #60385 (group grub):

I've encountered this bug today, and unaware of taoky's solution I've created
a fix as well.

The problem is very well described in this ticket: the current parser is
unaware of any nested blocks when searching for the end of a segment.

My solution is similar to taoky's, the difference is that I've added the logic
to the end of the segment parsing, this way it prevents possible future bugs
with the already supported segment types too. However I did not add the quotes
handling like taoky did.

I'll attach my patch as well, or you could pull from
https://github.com/mrbig/grub/tree/fix-60385

This patch was tested on version 2.06 but applies to current master too.


(file #56037)

    _______________________________________________________

Additional Item Attachment:

File name: 0001-lvm-better-handling-of-unknown-segment-types-during-.patch
Size: 2KiB
   
<https://file.savannah.gnu.org/file/0001-lvm-better-handling-of-unknown-segment-types-during-.patch?file_id=56037>


    AGPL NOTICE

These attachments are served by Savane. You can download the corresponding
source code of Savane at
https://git.savannah.nongnu.org/cgit/administration/savane.git/snapshot/savane-0329bc976c56c39d462c6cc5223a9b3c843a6486.tar.gz


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?60385>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]