-
Notifications
You must be signed in to change notification settings - Fork 24
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
bios: Handle empty pttype from lsblk output #740
Conversation
(Not tested yet) |
b9b9882
to
c5e96a7
Compare
I pushed a change to fix compilation - would obviously be good to test in the failing scenario for real, but we could also add a unit test fixture JSON. |
Thanks. I was setting up VMs to test this but got distracted by something else. Will hopefully test tomorrow. |
cb0daa1
to
fe4b06f
Compare
I've added a small unit test and manually verified that this works on Fedora Silverblue Rawhide BIOS & UEFI. |
zram, sr0 (CD/DVD) and LUKS devices generally don't use partitions, thus don't have a partition table and thus don't have a partition table type so this field may be null. Fixes: coreos#739 Signed-off-by: Colin Walters <[email protected]>
fe4b06f
to
f8504ba
Compare
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
This is to include coreos#740.
zram, sr0 (CD/DVD) and LUKS devices generally don't use partitions, thus don't have a partition table and thus don't have a partition table type so this field may be null.
Fixes: #739