Live-build creates unbootable usb-hdd images.

Bug #1006372 reported by Wagner Volanin on 2012-05-30
This bug affects 2 people
Affects Status Importance Assigned to Milestone
live-build (Ubuntu)

Bug Description

The usb-hdd images created with live-build do NOT have the first partition flagged as bootable. This way, when the image is copied to a pendrive, it will not boot in some BIOSes. When lb_usb_binary script sets the boot flag, the image is mounted as a loop device *with* an offset (thus accessing the contents of the first partition). This is wrong. It should set the boot flag earlier, when the image is mounted as a loop device *without* an offset (thus accessing the mbr). The fix is trivially simple, and a patch is attached.

What is expected to happen:
The lb_binary_usb script should flag the first partition as bootable in the image mbr.

What happened instead:
The lb_binary_usb script sets the boot flag in the wrong moment, and as such it does not work.

Using Ubuntu Precise 12.04 amd64.
Live-build 3.0~a24-1ubuntu32.

Wagner Volanin (volanin) wrote :

The attachment "lb_binary_usb.patch" of this bug report has been identified as being a patch. The ubuntu-reviewers team has been subscribed to the bug report so that they can review the patch. In the event that this is in fact not a patch you can resolve this situation by removing the tag 'patch' from the bug report and editing the attachment so that it is not flagged as a patch. Additionally, if you are member of the ubuntu-reviewers team please also unsubscribe the team from this bug report.

[This is an automated message performed by a Launchpad user owned by Brian Murray. Please contact him regarding any issues with the action taken in this bug report.]

tags: added: patch
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in live-build (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers