Bug#987008: working on this bug

Antoine Beaupré anarcat at debian.org
Sat Feb 25 20:35:14 GMT 2023


owner 987008 anarcat at debian.org
thanks

Hi,

I've ported the submitted patch here into the package and plan to upload
an NMU shortly.

To quote the actual patch file I ended up with:

Description: fix renamed LV detection
  It looks like the detection of the LVM logical volumes fails in
  certain edge conditions. In particular, it was reported that
  renaming an LV will make grub fail to boot from the system as it
  cannot properly detect it anymore.
  .
  I have looked at the code surrounding the patch and cannot claim to
  understand the entire function here, as it is huge and quite
  cryptic. But it seems sane: the `ptr` we're inspecting here starts
  at the `rlocn->offset`, but we were adding `mda_size` to the
  (somewhat) unrelated metadatabuf instead. Now we're marking the
  `mda_end` correctly, based on the rlocn->offsite and ->size.
  .
  I have not tested this myself as the test setup is quite involved,
  but it seems others (e.g. "Hoyer, David" <David.Hoyer at netapp.com>)
  have tested the patch and confirmed it worked.

A.

-- 
Never be deceived that the rich will allow you to vote away their wealth.
                        - Lucy Parsons



More information about the Pkg-grub-devel mailing list