Skip to content

Add stable interface for setting host boot options #587

@adamlouis

Description

@adamlouis

Callers, including production manufacturing software, currently rely on hiffy for setting host boot options. It would help to have a stable, committed interface here.


Examples:

#
# The SP needs to be told, now, to boot from the network.
#
if ! "$HUMILITY" hiffy -c ControlPlaneAgent.set_startup_options \
    -a startup_options=0x80; then
	printf 'ERROR: setting system boot source failed.\n' >&2
	exit 1
fi
    @retry(count=3, sleep=1)
    def enable_netboot(self):
        logging.info('Enabling net boot for target %s', self.target)
        cmd = ['pfexec', 'humility', '-t', self.target, 'hiffy',
               '-c', 'ControlPlaneAgent.set_startup_options', '-a',
               'startup_options=0x198']
        output_on_err(cmd)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions