Introduce a structure for passing components of kernel command line. Extend the
structure with a field to carry the full set of arguments. Introduce support in
grub.
Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
bootloader/many: rm ConfigFile, add Present for indicating presence of bloader
Now we have a specific method on the Bootloader interface which tells Find()
whether the specific bootloader is actually present on the current system. This
will simplify future bootloader implementations to be able to return errors when
identifying if a bootloader is present on the system is more complicated a
question than just if the config file for that bootloader exists.
This is required for the UC20 lk bootloader work, where the Present() implementation will be more complicated than just whether a file exists.
Now we have a specific method on the Bootloader interface which tells Find()
whether the specific bootloader is actually present on the current system. This
will simplify future bootloader implementations to be able to return errors when
identifying if a bootloader is present on the system is more complicated a
question than just if the config file for that bootloader exists.
Signed-off-by: Ian Johnson <ian.johnson@canonical.com>
Address TODO added during UC20 development and use a ForGadget helper when
installing boot configs of a bootloader.
Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
Drop the ManagedAssetsBootloader, all its methods become part of
TrustedAssetsBootloader. Update relevant locations.
Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
Where the candidate command line is based on the current internal edition of the
asset.
Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
Try to keep the separation between boot and bootloader packages. Tweak the
ManagedAssetsBootloader interface, so that extra command line arugments and mode
arguments are passed directly in the CommandLine call. This is preferable to
having the bootloader query boot vars directly.
Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>