Merge lp:~mwaddel/linaro-image-tools/split-deploy-v2 into lp:linaro-image-tools/11.11
Proposed by
Matt Waddel
Status: | Rejected |
---|---|
Rejected by: | Loïc Minier |
Proposed branch: | lp:~mwaddel/linaro-image-tools/split-deploy-v2 |
Merge into: | lp:linaro-image-tools/11.11 |
Diff against target: |
244 lines (+79/-36) 1 file modified
linaro-media-create (+79/-36) |
To merge this branch: | bzr merge lp:~mwaddel/linaro-image-tools/split-deploy-v2 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Linaro Maintainers | Pending | ||
Review via email: mp+38760@code.launchpad.net |
Description of the change
Added the --no-rootfs, --no-bootfs and --no-part options.
Rearranged the code so these options could be generically added through a DEPLOY_
These changes should not affect existing scripts or instructions. I tested on the vexpress and on a beagle qemu image deploy.
Incorporated previous code reviews.
To post a comment you must log in.
r146:
- could you rename MMC1/MMC2, and get_mmcs_by_id() as well? you can do that in an additional commit on top
- "Storge" -- but that's ok, was actually fixed in r148
- you could have renamed --mmc, but I guess you didn't mean to break the external interface; ok with me
r147: good catch!
r148: STEP="create_ boot_cmd populate_boot", but I didn't actually check whether that works
- testing for BOOTFS_STEP in create_boot_cmd() feels a bit awkard, it seems this code shouldn't be called in the first place!; I think I'd either:
* test at the top
* or merge this as a BOOTFS_STEP, that is, define BOOTFS_
* or arrange for create_boot_cmd to be called from a bootfs step, e.g. from populate_boot
- the "parted -s ${DEVICE} mklabel msdos" bit should have been moved in a separate commit, it's unrelated and hard to read there :-/
- same for "waiting for partitioning to settle" snippet
- replace "if test -z "$MMC1"; then" with "if [ -z "$MMC1" ]; then"; why is this reached at all?
- instead of "for funcs in $DEPLOY_STEPS; do $funcs; done" it would be nicer to name your loop var singular instead of plural ($func)
- could you add a comment in the code to explain why this test is needed? echo "Do not use --no-rootfs or --no-bootfs with --image_file option"; people who ask for nothing get nothing ;-)
r149:
- "!" is a bit hard to read (inverted non-empty test); -z and -n are more common: if [ -z "${ROOTFS_STEP}" ] || [ -z "${BOOTFS_STEP}" ]; then
r150: cute!