From patchwork Fri Oct 30 05:45:37 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: play4fun X-Patchwork-Id: 538125 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from arrakis.dune.hu (arrakis.dune.hu [78.24.191.176]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id D6360140FDA for ; Fri, 30 Oct 2015 16:46:27 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=qq.com header.i=@qq.com header.b=EbgvR7R7; dkim-atps=neutral Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 4FF9228B93F; Fri, 30 Oct 2015 06:44:34 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on arrakis.dune.hu X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,FREEMAIL_FROM, HTML_MESSAGE,T_DKIM_INVALID,T_RP_MATCHES_RCVD autolearn=unavailable version=3.3.2 Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id F004C2800BA for ; Fri, 30 Oct 2015 06:44:01 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 CL_IP_EQ_HELO_IP=-2 (check from: .qq. - helo: .smtpproxy19.qq. - helo-domain: .qq.) FROM/MX_MATCHES_HELO(DOMAIN)=-2; rate: -8.5 Received: from smtpproxy19.qq.com (smtpproxy19.qq.com [184.105.206.84]) by arrakis.dune.hu (Postfix) with ESMTPS for ; Fri, 30 Oct 2015 06:43:58 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qq.com; s=s201307; t=1446183938; bh=NCzTUjRmYf9Ym8JmA9S95RTXapJRyC+tIBMOo+jMdQk=; h=From:To:Subject:Mime-Version:Content-Type:Content-Transfer-Encoding:Date:Message-ID; b=EbgvR7R7f7GhS0+qss+syH4maIIUfwLYewHtWvEl9FF9bgF7NxBxCRij2jsSpt20G EmOfxDR4S6cwa1czFTFwx/a2k4kebDQkE1Ot5477HTIPcjntd4xZSMfkgJGMmgNaLu ykztWdncGB8qRdKQJWjaVJCJKrgVaLQvMJ2nIFk4= X-QQ-FEAT: zaIfg0hwV2rCTrVVsHwlrlUig4ssjfOXdcRULc2DZ/o= X-QQ-SSF: 00010000000000F000000000000000P X-HAS-ATTACH: no X-QQ-BUSINESS-ORIGIN: 2 X-Originating-IP: 27.38.164.123 X-QQ-STYLE: X-QQ-mid: webmail326t1446183937t9950975 From: "=?utf-8?B?5pyq5ZG95ZCN?=" To: "=?utf-8?B?b3BlbndydC1kZXZlbA==?=" Mime-Version: 1.0 Date: Fri, 30 Oct 2015 13:45:37 +0800 X-Priority: 3 Message-ID: X-QQ-MIME: TCMime 1.0 by Tencent X-Mailer: QQMail 2.x X-QQ-Mailer: QQMail 2.x X-QQ-SENDSIZE: 520 X-QQ-Bgrelay: 1 Subject: [OpenWrt-Devel] [PATCH] [packages] generic :add-missing-ubi*-in-ramfs-when-sysupgrade X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: openwrt-devel-bounces@lists.openwrt.org Sender: "openwrt-devel" This patch may fix the sysupgrade with xxx-squashfs-sysupgrade.tar file by adding missing other ubi* in ramfs. Signed-off-by: Shonn Lu 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() { # [...] 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