7 Commits

Author SHA1 Message Date
Maciej Borzecki
9efaa6ff96 bootloader/assets: update recovery grub to allow system labels generated by snapd
Update the recovery grub boot config to allow all system labels that are
considered valid by snapd, which are typically just numbers based on date, eg.
20210706 but follow the same rules as model names so hyphen separated
numbers/letters are allowed.

Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
2021-07-07 07:01:29 +02:00
Maciej Borzecki
1d910cddd4 bootloader/assets: move command line arguments assignment
Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
2021-04-16 14:15:22 +02:00
Maciej Borzecki
7677942be4 bootloader/assets: tweak comment about what gets loaded from the bootenv
Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
2021-04-16 08:04:56 +02:00
Maciej Borzecki
d0897fb526 bootloader/assets: add support for snapd_full_cmdline_args to grub assets
Add support for snapd_full_cmdline_args variable that carries a set of command
line arguments that shall be used in place of the static and extra ones. Thus
the contents of the new variable effectively become the list of arguments that
directly follows `snapd_recovery_mode=.. snapd_recovery_system=...` in the
kernel command line passed by grub.

The boot config edition is not bumped yet, thus it will not trigger an automatic
boot config update when a new snapd gets installed.

Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
2021-04-15 19:17:48 +02:00
Dimitri John Ledkov
c77ae0c563 bootloader/assets/grub: adjust fwsetup menuentry label
Make fwsetup menuentry label match upstream, classic, .iso installers.
2020-10-20 18:34:28 +01:00
Maciej Borzecki
2dee694980 Merge remote-tracking branch 'upstream/master' into bboozzoo/uc20-bootloader-command-line-glue-wip
Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
2020-07-27 10:06:51 +02:00
Maciej Borzecki
1d2ad6821c bootloader/assets/grub: generate grub assets from script files
Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
2020-07-24 13:31:50 +02:00