openwrt/target/linux/x86/base-files/lib/preinit
Tomasz Maciej Nowak b9c1cf1657 x86: add preinit hook for bootloader upgrade
This commit fills the void for current OpenWrt installations which will
be still on old bootloader version even after "x86: add bootloader
upgrade on sysupgrade", since it performs bootloader upgrade only on
sysupgrade. To keep all OpenWrt deploynents on the same GRUB version,
add preinit hook, which will perform upgrade of the bootloader on first
boot after sysupgrade.

It's temporary solution and should be deleted, when the first release
including this hook will no longer be supported by OpenWrt team.
We can assume that all installations should be on current bootolader
version and from there sysupgrade routine will be sufficient.

Signed-off-by: Tomasz Maciej Nowak <tomek_n@o2.pl>
2020-03-01 21:36:00 +01:00
..
01_sysinfo x86: preinit: use board_name on Sm Super Servers 2018-01-04 13:44:42 +01:00
02_load_x86_ucode Revert "x86: add intel microcode entries to grub config" 2018-11-27 18:58:38 +01:00
15_essential_fs_x86 Do not overload mount-call - trying to reduce confusion 2012-12-19 16:07:46 +00:00
20_check_iso x86: add grub2 iso support 2012-10-07 23:01:52 +00:00
79_move_config treewide: don't hardcode "sysupgrade.tgz" file name 2019-09-05 14:33:19 +02:00
81_upgrade_bootloader x86: add preinit hook for bootloader upgrade 2020-03-01 21:36:00 +01:00