-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bios: Handle empty pttype from lsblk output
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 Signed-off-by: Colin Walters <[email protected]>
- Loading branch information
Showing
2 changed files
with
54 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ | ||
"blockdevices": [ | ||
{ | ||
"path": "/dev/sr0", | ||
"pttype": null, | ||
"parttypename": null | ||
},{ | ||
"path": "/dev/zram0", | ||
"pttype": null, | ||
"parttypename": null | ||
},{ | ||
"path": "/dev/vda", | ||
"pttype": "gpt", | ||
"parttypename": null | ||
},{ | ||
"path": "/dev/vda1", | ||
"pttype": "gpt", | ||
"parttypename": "EFI System" | ||
},{ | ||
"path": "/dev/vda2", | ||
"pttype": "gpt", | ||
"parttypename": "Linux extended boot" | ||
},{ | ||
"path": "/dev/vda3", | ||
"pttype": "gpt", | ||
"parttypename": "Linux filesystem" | ||
},{ | ||
"path": "/dev/mapper/luks-df2d5f95-5725-44dd-83e1-81bc4cdc49b8", | ||
"pttype": null, | ||
"parttypename": null | ||
} | ||
] | ||
} | ||
|