RPi4 does not support OSTree rollback properly
During an upgrade of U-Boot we discovered that the rollback support on the RPi4 is currently broken:
Warning: Bootlimit (3) exceeded. Using altbootcmd.
Hit any key to stop autoboot: 0
## Error: "distro_bootcmd" not defined
This is due to the RPi configs migrating from the use of Distro Boot to the bootstd support, which no longer utilises the boot_syslinux_conf
environment variable, which we use to select an alternative config file, nor providing distro_bootcmd
, instead relying on the new bootflow
command being called.
The existing config enables very basic bootstd support which can't really be configured at boot time. A possible approach to fix the issue is to enable the full support and investigate whether we can use the bootflow select
command to select the second boot item in the config, which is essentially what we are doing in ostree when we create the rollback config.
Management data
This section is for management only, it should be the last one in the description.
Phabricator link: https://phabricator.apertis.org/T10690