x86: fix grub-bios-setup fail during sysupgrade

grub-bios-setup requires two images (boot.img and core.img),
but they are missing. This make an error during sysupgrade:
Upgrading bootloader on /dev/sda...
grub-bios-setup: error: cannot open `/tmp/boot/boot/grub/boot.img': No
such file or directory.

Signed-off-by: 李国 <uxgood.org@gmail.com>
This commit is contained in:
李国
2020-04-07 09:11:46 +00:00
committed by Petr Štetiar
parent fabcfa9222
commit 32f675ca9f
2 changed files with 4 additions and 1 deletions

View File

@@ -63,7 +63,7 @@ platform_do_bootloader_upgrade() {
-d "/tmp/boot/boot/grub" \
-r "hd0,${parttable}1" \
"/dev/$diskdev" \
&& touch /boot/grub/upgraded
&& touch /tmp/boot/grub/upgraded
umount /tmp/boot
fi