[OpenWrt-Devel,v2,0/3] x86: upgrade bootloader on sysupgrade
mbox series

Message ID 20190718133135.6474-1-tomek_n@o2.pl
Headers show
Series
  • x86: upgrade bootloader on sysupgrade
Related show

Message

Tomasz Maciej Nowak July 18, 2019, 1:31 p.m. UTC
After gotten bit more familiar with OpenWrt, I found less intrusive
method to implement upgrading of bootloader, instead of rewriting image
generation code like in my previous attempt [1]. It had some value in
itself, so if anyone will request it, I'll respin these patches as
separate series in near future.

https://patchwork.ozlabs.org/cover/1024165

Changes in v2:
x86: add bootloader upgrade on sysupgrade:
move bootloader upgrade to function as suggested by Petr Štetiar,
extend commit message

x86: add preinit hook for bootloader upgrade
rewrite commit message

Tomasz Maciej Nowak (3):
  x86: image: cleanup before creating image
  x86: add bootloader upgrade on sysupgrade
  x86: add preinit hook for bootloader upgrade

 package/boot/grub2/Makefile                   |  5 ++++
 .../lib/preinit/81_upgrade_bootloader         | 19 ++++++++++++++
 .../x86/base-files/lib/upgrade/platform.sh    | 25 +++++++++++++++++++
 target/linux/x86/image/Makefile               |  9 ++++---
 4 files changed, 55 insertions(+), 3 deletions(-)
 create mode 100644 target/linux/x86/base-files/lib/preinit/81_upgrade_bootloader