Bug 1287611
| Summary: | blkid doesn't recognize biosboot partition | |||
|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Alexander Todorov <atodorov> | |
| Component: | util-linux | Assignee: | Karel Zak <kzak> | |
| Status: | CLOSED WONTFIX | QA Contact: | qe-baseos-daemons | |
| Severity: | medium | Docs Contact: | ||
| Priority: | medium | |||
| Version: | 7.2 | |||
| Target Milestone: | rc | |||
| Target Release: | --- | |||
| Hardware: | Unspecified | |||
| OS: | Unspecified | |||
| Whiteboard: | ||||
| Fixed In Version: | Doc Type: | Bug Fix | ||
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 1287613 (view as bug list) | Environment: | ||
| Last Closed: | 2015-12-03 12:30:47 UTC | Type: | Bug | |
| Regression: | --- | Mount Type: | --- | |
| Documentation: | --- | CRM: | ||
| Verified Versions: | Category: | --- | ||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
| Cloudforms Team: | --- | Target Upstream Version: | ||
| Embargoed: | ||||
|
Description
Alexander Todorov
2015-12-02 12:57:44 UTC
*** Bug 1287613 has been marked as a duplicate of this bug. *** It depends what are you looking for, I guess (also according to bug #128761) you want to check partition type. GPT uses GUIDs: "Partition type GUIDs" at https://en.wikipedia.org/wiki/GUID_Partition_Table blkid provides this by blkid -p -o udev /dev/sda1 as ID_PART_ENTRY_TYPE= variable, but this is expensive root-only method (it probes for many another things). It's better to reuse information already gathered in udev db, lsblk -n -o PARTTYPE /dev/sda1 or if you really want to read the data directly from the device (system without udev, etc.) than use: partx -g -o TYPE /dev/sda1 but recommended is lsblk. Note that GPT also uses special flags for mark partition as LegacyBIOSBootable (in your parted output), this is provided by blkid as ID_PART_ENTRY_FLAGS=, by partx as FLAGS and by lsblk as PARTFLAGS, in all cases as hex $ lsblk -n -o PARTFLAGS /dev/sdc1 0x4 Note the same variable is used for MBR flags. See wikipedia about GPT, section "Partition attributes". on fedora (>=f22) you can use fdisk/sfdisk to translate the flag to human readable string: # sfdisk --part-attrs /dev/sdc 1 LegacyBIOSBootable ... note that I don't plan extend libblkid to translate the flags (so WONTFIX, sorry). |