]> git.ipfire.org Git - thirdparty/openwrt.git/commit
x86: onie-installer: wire up sysupgrade via ONIE install mode 23062/head
authorKeno Fischer <keno@juliahub.com>
Sat, 25 Apr 2026 11:07:31 +0000 (11:07 +0000)
committerJonas Jelonek <jelonek.jonas@gmail.com>
Sat, 23 May 2026 15:23:54 +0000 (17:23 +0200)
commit9a143bf7ffdbbbdcf79549d0428415721e104521
treee2ddfd351d5446af4e3886ad6e3ad4dc57779852
parentc7e8cffcb273e89336517cb6549a245bcf781e3c
x86: onie-installer: wire up sysupgrade via ONIE install mode

This adds support for sysupgrade on ONIE-installed systems.
The install is chained through ONIE (using the ONIE installer image),
rather than attempting to manually upgrade the partition.
The idea is to allow future OpenWRT installs flexibility to use
a different partition table. By putting the installer in charge
of setting up the file system partition, the upgrade process needs
to have no knowledge of the internals of the image.

Config preservation is accomplished by appending the sysupgrade .tar.gz
to the ONIE installer image. Of course this also works for a clean
install using a sysupgrade.tar.gz created via `sysupgrade -b`.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Signed-off-by: Keno Fischer <keno@juliahub.com>
Link: https://github.com/openwrt/openwrt/pull/23062
Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
config/Config-images.in
target/linux/x86/base-files/lib/upgrade/platform.sh
target/linux/x86/image/Makefile
target/linux/x86/image/onie-install.sh.in