~milo/lava-dispatcher/tar-repo

« back to all changes in this revision

Viewing changes to lava_dispatcher/actions/boot_control.py

UEFI support for Fastmodels. Add interactive bootloader support.

Show diffs side-by-side

added added

removed removed

Lines of Context:
71
71
    """
72
72
 
73
73
    parameters_schema = _boot_schema
 
74
    parameters_schema['properties']['interactive_boot_cmds'] = {
 
75
        'default': False, 'optional': True
 
76
    }
74
77
 
75
 
    def run(self, options=[]):
 
78
    def run(self, options=[], interactive_boot_cmds=False):
76
79
        client = self.client
77
 
        client.target_device.boot_options = options
 
80
        if interactive_boot_cmds:
 
81
            client.config.boot_cmds = options
 
82
        else:
 
83
            client.target_device.boot_options = options
78
84
        status = 'pass'
79
85
        try:
80
86
            client.boot_linaro_image()