base-files: upgrade: add case to export_bootdevice
authorKlaus Kudielka <klaus.kudielka@gmail.com>
Sat, 17 Aug 2019 13:52:01 +0000 (15:52 +0200)
committerPetr Štetiar <ynezz@true.cz>
Sun, 5 Jan 2020 15:41:35 +0000 (16:41 +0100)
commit3140d380422e3b6416b5dbdc951f90b006a4eaac
treee6763ba02d10d05741a951bee69edfabc62e37ea
parent3c110320398b0a19566b36f83643f33b40d4b5eb
base-files: upgrade: add case to export_bootdevice

The factory uboot of the Turris Omnia boots with "root=b301", and we
instruct new users to sysupgrade from there (e.g. method 1, step 7).
Currently, this will fail with "Unable to determine upgrade device".
Add a new case to export_bootdevice, which parses the hex argument.

Ref: https://github.com/openwrt/openwrt/pull/2340#issuecomment-561317688
Fixes: 2e5a0b81ec29 ("mvebu: sysupgrade: sdcard: keep user added partitons")
Reviewed-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Klaus Kudielka <klaus.kudielka@gmail.com>
Signed-off-by: Petr Štetiar <ynezz@true.cz>
(cherry picked from commit 3a4f587c465a0531b820ca1a3e90eb05c4927b68)
package/base-files/files/lib/upgrade/common.sh