dracut icon indicating copy to clipboard operation
dracut copied to clipboard

dmsquash-live-root: Run checkisomd5 on correct device

Open bcl opened this issue 3 years ago • 1 comments

When the new grub2 iso is written to a usb drive the disk label points to a partition that does not include the full iso image. This causes checkisomd5 to run with the wrong data and it fails.

This patch adds a check that will test to see if there is a parent device that is a disk, and to run checkisomd5 on it instead of on the partition pointed to by the label.

When running from an iso this will return the original /dev/disk/by-label/ path, and when running from a usb drive it will return the parent device (eg. /dev/sda).

Resolves: rhbz#2107858

Checklist

  • [X] I have tested it locally
  • [X] I have reviewed and updated any documentation if relevant
  • [X] I am providing new code and test(s) for it

bcl avatar Jul 25 '22 23:07 bcl

@LaszloGombos looks like one of the tests timed out. I don't think I have the power to retry, can you?

bcl avatar Aug 10 '22 15:08 bcl