Public bug reported:

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.

** Affects: live-build (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: boot-flag bootable live-build usb-hdd

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1006372

Title:
  Live-build creates unbootable usb-hdd images.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/live-build/+bug/1006372/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to