-
Notifications
You must be signed in to change notification settings - Fork 395
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dmsquash-live-root: Run checkisomd5 on correct device #1882
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, thank you.
But I don't feel strong enough in dracut land so I'd prefer also second eye on the patch.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, you need to change your commit message from:
dmsquash-live-root: Run checkisomd5 on correct device
to something like:
fix(dmsquash-live): run checkisomd5 on correct device
See https://github.com/dracutdevs/dracut/blob/master/docs/HACKING.md#commit-messages
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TBH I'd rather rewrite this and parse the entries line-by-line using for
and case
.
af37a4c
to
8270bec
Compare
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
@LaszloGombos looks like one of the tests timed out. I don't think I have the power to retry, can you? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
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