Untangle boot commands from dispatcher

Registered by Senthil Kumaran S

Each device has a set of hardcoded boot commands in the dispatcher. Until now, we had to extend the commands for each boot commands variant. It doesn't scale. We should untangle the boot commands from the dispatcher.

For testing huge pages/numa kernel, we have to pass numa=fake=2. linaro-media-create allows such feature using --extra-boot-args option. The generated image contains the required information.

We should read the boot commands from the image and ideally, be able to override the boot command through the job definition (fully or partly, like the l-m-c extra boot args).

Blueprint information

Status:
Complete
Approver:
Tyler Baker
Priority:
High
Drafter:
Senthil Kumaran S
Direction:
Needs approval
Assignee:
Senthil Kumaran S
Definition:
Approved
Series goal:
Accepted for trunk
Implementation:
Implemented
Milestone target:
milestone icon 2013.04
Started by
Senthil Kumaran S
Completed by
Senthil Kumaran S

Whiteboard

[stylesen, 2013-04-11] We shall add support for reading from uEnv.txt later once we have some fedora images added to LAVA. Adding uEnv.txt will be taken in a bug separately once fedora images are ready. Now lets go with support for boot.txt.
[2013-04-24 asac] Headline/acceptance should be improved for release; think of the headline standing on a newspaper all alone. what would you say about the stuff achieved done here? Remember to update the text here, but also on fabo's monthly release highlights page that will go out to the world tomorrow.

Meta:
Headline: Boot commands are untangled from LAVA dispatcher. They're now read from images.
Acceptance: We have a mechanism to dynamically read boot commands from the images and also fall back to defaults from lava.
Roadmap Id: TBD

(?)

Work Items

Work items:
read boot commands from files in boot partition after deployment: DONE
replace boot options with the read boot commands: DONE
provide a mechanism to fallback with defaults provided by lava: DONE
test for pre-built images: DONE
test for images with hwpack+rootfs: DONE

This blueprint contains Public information 
Everyone can see this information.