base-files: recognize bootdevice on devices using fitblk
authorDaniel Golle <daniel@makrotopia.org>
Sun, 25 Feb 2024 21:01:01 +0000 (21:01 +0000)
committerDaniel Golle <daniel@makrotopia.org>
Mon, 26 Feb 2024 01:29:22 +0000 (01:29 +0000)
commit5992f976b39a0a0a79e5b9656279186cd471e353
tree3d34fe57fc5a9f94810b3b4d5d19c3c1594887e3
parent0acf0bc2043e56dc90df3b61192cd312b6cf8fdd
base-files: recognize bootdevice on devices using fitblk

Boards using the fitblk driver need special treatment when it comes to
detecting the actual block device used to store the image used to boot
from. Transparently handle this in 'export_bootdevice' and provide new
'fitblk_get_bootdev' function to replace implementations in
/lib/upgrade/platform.sh.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
package/base-files/files/lib/upgrade/common.sh