Merge lp://staging/~yuningdodo/usb-creator/usb-creator.lp1325801v3-use-source-syslinux into lp://staging/usb-creator

Proposed by Yu Ning
Status: Merged
Approved by: Mathieu Trudel-Lapierre
Approved revision: 462
Merged at revision: 467
Proposed branch: lp://staging/~yuningdodo/usb-creator/usb-creator.lp1325801v3-use-source-syslinux
Merge into: lp://staging/usb-creator
Diff against target: 49 lines (+28/-0)
1 file modified
bin/usb-creator-helper (+28/-0)
To merge this branch: bzr merge lp://staging/~yuningdodo/usb-creator/usb-creator.lp1325801v3-use-source-syslinux
Reviewer Review Type Date Requested Status
Mathieu Trudel-Lapierre Approve
usb-creator hackers Pending
Review via email: mp+250877@code.staging.launchpad.net

Description of the change

Find and use the syslinux from the source squashfs. (LP: #1325801)

This patch can fix the bug in below cases (not a full list, only what I've tested):
* host: ubuntu 14.04; target: ubuntu 14.04;
* host: ubuntu 14.04; target: ubuntu 14.10;
* host: ubuntu 14.04; target: ubuntu 13.10;
* host: ubuntu 14.10; target: ubuntu 14.10;
* host: ubuntu 14.10; target: ubuntu 14.04;
* host: ubuntu 14.10; target: ubuntu 13.10;

This patch won't work in below cases, but at least it won't make things worse, it just keep the original behavior:
* target: debian-7.7.0-amd64-netinst.iso: no squashfs at all
* target: xubuntu 14.10: syslinux not pre-installed into squashfs

As long as there is syslinux pre-installed in the ISO this patch will take effect; and when there is no syslinux pre-installed, it won't change anything.

One thing to mention is that the patch adds one parameter to the dbus method InstallBootloader(), so it will break API compatibility. However it maybe possible to do the job w/o this parameter. I'll keep working on it.

To post a comment you must log in.
462. By Yu Ning

Mount the squashfs from the usbstick instead of the CDROM/ISO, so we don't need to break the API compability.

Revision history for this message
Yu Ning (yuningdodo) wrote :

Updated, now we'll mount the squashfs on the usbstick instead of the CDROM/ISO, so we don't need to break the API compatibility.

Revision history for this message
Mathieu Trudel-Lapierre (cyphermox) wrote :

Looks good, approve.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches

to all changes: