Merge lp://staging/~emanuele-aina/linaro-image-tools/grub-load-rootfs-by-uuid into lp://staging/linaro-image-tools/11.11

Proposed by Emanuele Aina
Status: Needs review
Proposed branch: lp://staging/~emanuele-aina/linaro-image-tools/grub-load-rootfs-by-uuid
Merge into: lp://staging/linaro-image-tools/11.11
Diff against target: 171 lines (+20/-19)
2 files modified
linaro_image_tools/media_create/boards.py (+18/-18)
linaro_image_tools/media_create/tests/test_media_create.py (+2/-1)
To merge this branch: bzr merge lp://staging/~emanuele-aina/linaro-image-tools/grub-load-rootfs-by-uuid
Reviewer Review Type Date Requested Status
Milo Casagrande (community) Needs Fixing
Review via email: mp+113585@code.staging.launchpad.net

Description of the change

Currently the I386Config board definition sets the `root=LABEL=rootfs' parameter for the kernel to be booted and, given that populate_rootfs() uses the UUID to populate /etc/fstab, this can lead to some inconsistencies.

This branch updates the _make_boot_files_*() functions to accept a 'rootfs_uuid' parameter and on i386 uses it to generate a "root=UUID=%s" kernel command line argument.

Argument passing between the bootfs/rootfs stages is a bit flaky, given the need to update so many call sites. Coalescing all the function parameters in a BuildConfig object would reduce the patch to three lines and make future modifications easier.

To post a comment you must log in.
Revision history for this message
Milo Casagrande (milo) wrote :

Hi Emanuele,

thanks for working on this!
I was looking at the patch, and unfortunately there is a small conflict when I merge it with trunk. Conflict is rather trivia to fix, but the are at least 13 tests failing now.

Can you please update the patch and take a look at the errors?
Thanks.

review: Needs Fixing

Unmerged revisions

534. By Emanuele Aina

Point the i386 kernel to its rootfs by UUID

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