Merge lp://qastaging/~tom-gall/linaro-image-tools/reuse-partition into lp://qastaging/linaro-image-tools/11.11
Proposed by
Tom Gall
Status: | Rejected |
---|---|
Rejected by: | Loïc Minier |
Proposed branch: | lp://qastaging/~tom-gall/linaro-image-tools/reuse-partition |
Merge into: | lp://qastaging/linaro-image-tools/11.11 |
Diff against target: |
56 lines (+19/-6) 1 file modified
linaro-media-create (+19/-6) |
To merge this branch: | bzr merge lp://qastaging/~tom-gall/linaro-image-tools/reuse-partition |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Linaro Maintainers | Pending | ||
Review via email:
|
Description of the change
I test out a fair number of images so having to partition, repartition and repartition again is a bit unnecessary.
This patch adds the --reuse-partitions flag which when combined with the --mmc flag will skip the partition step. It does prompt the user to validate the partition table as acceptable. If the user does not accept the partition table, the tool exists.
To post a comment you must log in.
I'm a bit scared that we add this type of features
However, it happens that a similar refactoring is happening for another reason
In: /code.launchpad .net/~mwaddel/ linaro- image-tools/ deploy- fs-options/ +merge/ 38179
https:/
Matt re-arranges the code to be able to only write the boot or the root partition
I think we could support your use case elegantly by making the "create_partitions" step a separate one, and allow to specify steps on the command-line, so that you could run:
linaro-media-create --steps rootfs --device /dev/mmcblk0 [...]
Matt would be able to write: partitions, boot --device /dev/mmcblk0 [...] partitions, root --device /dev/sdb [...]
linaro-media-create --steps create_
linaro-media-create --steps create_
and regular users would run: partitions, boot,root --device /dev/mmcblk0 [...]
linaro-media-create --device /dev/mmcblk0 [...]
which would be the same as:
linaro-media-create --steps create_
I do object in general to add hacks/flags making the script more complex just for people rewriting their SD cards 30 times a day, but with the above approach it should not be a problem.
Would I be you, I'd have my own local mini-script which unpacks a binary.tgz into a device or something like that.