-
Notifications
You must be signed in to change notification settings - Fork 401
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information
Showing
2 changed files
with
31 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters