x86: fix touching bootloader "upgraded" mark
authorYousong Zhou <yszhou4tech@gmail.com>
Mon, 2 Nov 2020 13:04:24 +0000 (21:04 +0800)
committerYousong Zhou <yszhou4tech@gmail.com>
Mon, 2 Nov 2020 13:09:22 +0000 (21:09 +0800)
commitbd0b8200687c69df543a7e3ef043baa39d7784be
treebe7b5eb26442362917abac7893da898c05662a37
parent4b7165722cb0e2ba62ab68e8b90d4d4b0909744c
x86: fix touching bootloader "upgraded" mark

The mount point is "/tmp/boot", the path in the boot partition is
"/boot/grub/upgraded".

Origin of this mark b9c1cf16 ("x86: add preinit hook for bootloader
upgrade")

Fixes 32f675ca ("x86: fix grub-bios-setup fail during sysupgrade")

Ref: https://bugs.openwrt.org/index.php?do=details&task_id=3140
Reported-by: Philip Prindeville <philipp@redfish-solutions.com>
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
target/linux/x86/base-files/lib/upgrade/platform.sh