Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 603000

Summary: part-get-bootable gives wrong result with an unordered part layout
Product: Red Hat Enterprise Linux 6 Reporter: Jinxin Zheng <jzheng>
Component: libguestfsAssignee: Richard W.M. Jones <rjones>
Status: CLOSED ERRATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: low    
Version: 6.2CC: llim, mbooth, mshao, virt-maint
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: libguestfs-1.7.17-23.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 602997 Environment:
Last Closed: 2011-12-06 10:41:58 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 602997    
Bug Blocks:    

Comment 2 RHEL Program Management 2010-06-11 08:43:05 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux major release.  Product Management has requested further
review of this request by Red Hat Engineering, for potential inclusion in a Red
Hat Enterprise Linux Major release.  This request is not yet committed for
inclusion.

Comment 3 Richard W.M. Jones 2010-07-07 22:28:28 UTC
Unlikely to be fixed for 6.0 because any patch will be far
too invasive and risky.  Will try to get a fix in 6.1 instead.

Comment 5 Richard W.M. Jones 2010-10-16 13:58:12 UTC
This is not going to be fixed for 6.1.  Will try for 6.2.

Comment 7 Richard W.M. Jones 2011-06-10 09:12:36 UTC
Not yet fixed upstream, but worth fixing this for
6.2.  Setting dev-ack+

Comment 8 Richard W.M. Jones 2011-07-12 16:22:11 UTC
Patch posted:
http://www.redhat.com/archives/libguestfs/2011-July/msg00024.html

Comment 9 Richard W.M. Jones 2011-07-13 08:59:09 UTC
Fixed upstream in the following commit:

http://git.annexia.org/?p=libguestfs.git;a=commitdiff;h=511c82df46f5c6f4a7f984fdb81d4691038ed6da

Comment 10 Richard W.M. Jones 2011-08-10 12:46:02 UTC
Fixed in
libguestfs-1.7.17-23.el6

Comment 12 Jinxin Zheng 2011-08-26 09:01:41 UTC
Script verifying this bug:

guestfish <<EOF
sparse test1.img 100M
run
part-init /dev/sda mbr
part-add /dev/sda p 1001 2000
part-add /dev/sda p 1 1000
part-set-bootable /dev/sda 1 1
part-get-bootable /dev/sda 1
part-get-bootable /dev/sda 2
EOF

guestfish <<EOF
sparse test2.img 100M
run
part-init /dev/sda mbr
part-add /dev/sda p 1 1000
part-add /dev/sda p 1001 2000
part-add /dev/sda p 2001 3000
part-del /dev/sda 2
part-get-bootable /dev/sda 3
EOF



libguestfs-1.7.17-19: the output is
false
true
libguestfs: error: unexpected end of file when reading from daemon


libguestfs-1.7.17-26:
true
false
false

Comment 13 errata-xmlrpc 2011-12-06 10:41:58 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2011-1512.html