mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-21 22:47:56 +00:00
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 markb9c1cf16
("x86: add preinit hook for bootloader upgrade") Fixes32f675ca
("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>
This commit is contained in:
parent
4b7165722c
commit
bd0b820068
@ -63,7 +63,7 @@ platform_do_bootloader_upgrade() {
|
||||
-d "/tmp/boot/boot/grub" \
|
||||
-r "hd0,${parttable}1" \
|
||||
"/dev/$diskdev" \
|
||||
&& touch /tmp/boot/grub/upgraded
|
||||
&& touch /tmp/boot/boot/grub/upgraded
|
||||
|
||||
umount /tmp/boot
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user