On 10/30/2013 07:24 AM, Bastian Bittorf wrote:
> [platform/au1000/sysupgrade] fix sysupgrade when changing rootfs from jffs2 
> to squashfs and visa versa
> 
> till now only jffs2 was possible and sysupgrade refuses to change fs-type,
> because of bad/invalid content in sysupgrade-file. manually overriding
> works, so i made this patch. upgrade tested from r36088 to r38570.
> (jffs2 to squashfs).
> 
> Signed-off-by: Bastian Bittorf <bitt...@bluebottle.com>
> ---
>  .../au1000/base-files/lib/upgrade/platform.sh      |   25 +++++++++++++------
>  1 files changed, 17 insertions(+), 8 deletions(-)
> 
> diff --git a/target/linux/au1000/base-files/lib/upgrade/platform.sh 
> b/target/linux/au1000/base-files/lib/upgrade/platform.sh
> index 85ab213..e2c8687 100644
> --- a/target/linux/au1000/base-files/lib/upgrade/platform.sh
> +++ b/target/linux/au1000/base-files/lib/upgrade/platform.sh
> @@ -1,19 +1,28 @@
>  KERNEL_IMG="openwrt-au1000-au1500-vmlinux.bin"
> -ROOTFS_IMG="openwrt-au1000-au1500-jffs2-128k.fs"
> +ROOTFS_IMG_JFFS2="openwrt-au1000-au1500-jffs2-128k.fs"
> +ROOTFS_IMG_SQASH="openwrt-au1000-au1500-squashfs.fs"

I don't know how other platforms handle this, but couldn't the rootfs
image inside the [jffs2|squashfs]-sysupgrade.bin always have the same name?

bruno
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to