x86: generalize partition discovery for sysupgrade
authorJo-Philipp Wich <jo@mein.io>
Tue, 24 May 2016 10:07:02 +0000 (12:07 +0200)
committerJo-Philipp Wich <jo@mein.io>
Tue, 24 May 2016 11:30:58 +0000 (13:30 +0200)
commit1012701014bd944197031a3c0023527861b521b4
tree6ef4087afd0ce664dba35e75376526152075b4e1
parent3193053df7d27bde82fbcc310e4404cc43f39313
x86: generalize partition discovery for sysupgrade

Generalize the partition discovery in sysupgrade in order to fix sysupgrade
and config backup/recovery on MMC block devices which use a different naming
scheme compared to mtdblock or sd* devices.

The change also adds the find applet to the ramdisk utilities so that upgrade
code can rely on it.

The commit is based on the initial submission by Russell Senior at
http://patchwork.ozlabs.org/patch/625440/ .

Signed-off-by: Russell Senior <russell@personaltelco.net>
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
package/base-files/files/lib/upgrade/common.sh
target/linux/x86/base-files/lib/preinit/79_move_config
target/linux/x86/base-files/lib/upgrade/platform.sh