diff mbox

[OpenWrt-Devel,packages] generic :add-missing-ubi*-in-ramfs-when-sysupgrade

Message ID tencent_7ED5C7677F58B2DC317E3EB5@qq.com
State Rejected
Headers show

Commit Message

play4fun Oct. 30, 2015, 5:45 a.m. UTC
This patch may fix the sysupgrade with xxx-squashfs-sysupgrade.tar file by adding missing other ubi* in ramfs.

Signed-off-by:  Shonn Lu <cou​ntrysideboy@qq.com>

---

Comments

John Crispin Nov. 3, 2015, 8:01 a.m. UTC | #1
Hi,

this patch looks weird. please explain the error you are seeing and what
HW you are using.

	John

On 30/10/2015 06:45, 未命名 wrote:
> This patch may fix the sysupgrade with xxx-squashfs-sysupgrade.tar file
> by adding missing other ubi* in ramfs.
> 
> Signed-off-by:  Shonn Lu <cou​ntrysideboy@qq.com>
> ---
> diff --git a/package/base-files/files/lib/upgrade/common.sh
> b/package/base-files/files/lib/upgrade/common.sh
> index 761b4c1..78bd65f 100644
> --- a/package/base-files/files/lib/upgrade/common.sh
> +++ b/package/base-files/files/lib/upgrade/common.sh
> @@ -67,6 +67,7 @@ run_ramfs() { # <command> [...]
>  install_bin /usr/sbin/ubirsvol
>  install_bin /usr/sbin/ubirmvol
>  install_bin /usr/sbin/ubimkvol
> +install_bin /usr/sbin/ubi*
>  for file in $RAMFS_COPY_BIN; do
>  install_bin ${file//:/ }
>  done
> 
> 
> 
> _______________________________________________
> openwrt-devel mailing list
> openwrt-devel@lists.openwrt.org
> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
>
diff mbox

Patch

diff --git a/package/base-files/files/lib/upgrade/common.sh b/package/base-files/files/lib/upgrade/common.sh
index 761b4c1..78bd65f 100644
--- a/package/base-files/files/lib/upgrade/common.sh
+++ b/package/base-files/files/lib/upgrade/common.sh
@@ -67,6 +67,7 @@  run_ramfs() { # <command> [...]
 	install_bin /usr/sbin/ubirsvol
 	install_bin /usr/sbin/ubirmvol
 	install_bin /usr/sbin/ubimkvol
+	install_bin /usr/sbin/ubi*
 	for file in $RAMFS_COPY_BIN; do
 		install_bin ${file//:/ }
 	done