[OpenWrt-Devel] [PATCH v3 0/3] x86: upgrade bootloader on sysupgrade

Tomasz Maciej Nowak tomek_n at o2.pl
Tue Jan 14 12:45:42 EST 2020


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.

To expand a bit the explanation "Why this series?", please consult [2]
and the conversation in that letter.

1. https://patchwork.ozlabs.org/cover/1024165
2. https://patchwork.ozlabs.org/cover/1000625

Changes in v3:
rebase on top of master

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

-- 
2.24.1


-------------- next part --------------
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list