]> git.ipfire.org Git - thirdparty/dracut.git/commit
fix(dmsquash-live): run checkisomd5 on correct device
authorBrian C. Lane <bcl@redhat.com>
Fri, 22 Jul 2022 23:10:20 +0000 (16:10 -0700)
committerJóhann B. Guðmundsson <johannbg@gmail.com>
Fri, 12 Aug 2022 10:46:36 +0000 (10:46 +0000)
commitc8f819e6c1c38e525e4b491b4215a939ee6e00df
treed1d8cc3dc7c67b9802eebdc3026fab041b7f5699
parent72b700e3cb8a0d74033e6e20b2435d9254b36efe
fix(dmsquash-live): run checkisomd5 on correct device

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
modules.d/90dmsquash-live/dmsquash-live-root.sh
modules.d/90dmsquash-live/module-setup.sh