X-Original-To: alpine-devel@lists.alpinelinux.org Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by lists.alpinelinux.org (Postfix) with ESMTP id 70C3BF81710 for ; Mon, 25 Feb 2019 14:42:45 +0000 (UTC) Received: from pps.filterd (m0098399.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x1PEdSes093777 for ; Mon, 25 Feb 2019 09:42:44 -0500 Received: from e06smtp04.uk.ibm.com (e06smtp04.uk.ibm.com [195.75.94.100]) by mx0a-001b2d01.pphosted.com with ESMTP id 2qvh3qcf7m-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 25 Feb 2019 09:42:43 -0500 Received: from localhost by e06smtp04.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 25 Feb 2019 14:42:41 -0000 Received: from b06cxnps3074.portsmouth.uk.ibm.com (9.149.109.194) by e06smtp04.uk.ibm.com (192.168.101.134) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Mon, 25 Feb 2019 14:42:38 -0000 Received: from d06av23.portsmouth.uk.ibm.com (d06av23.portsmouth.uk.ibm.com [9.149.105.59]) by b06cxnps3074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id x1PEgbvc49283204 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Mon, 25 Feb 2019 14:42:37 GMT Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 10CCDA404D for ; Mon, 25 Feb 2019 14:42:37 +0000 (GMT) Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id EABA4A4051 for ; Mon, 25 Feb 2019 14:42:36 +0000 (GMT) Received: from oc7167334104.ibm.com (unknown [9.152.224.115]) by d06av23.portsmouth.uk.ibm.com (Postfix) with ESMTP for ; Mon, 25 Feb 2019 14:42:36 +0000 (GMT) Subject: Re: [alpine-devel] Bug on mkimage.sh logic. To: alpine-devel@lists.alpinelinux.org References: From: Tuan Hoang Date: Mon, 25 Feb 2019 15:42:36 +0100 X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 x-cbid: 19022514-0016-0000-0000-0000025AA800 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 19022514-0017-0000-0000-000032B505AB Message-Id: X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-02-25_08:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=3 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=908 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1902250108 Hi, mkimage.sh should be running on the host of the same architecture as the target. (i.e. creating images for arm on arm machines). Since x86_64 and aarch64 have different signing keys respectively, UNTRUSTED signature is error expected. You could use qemu (emulation mode on x86) to run Alpine aarch64 to build aarch64 image though. There was somebody mentioned using Docker multi-arch support feature to build aarch64 images on x86 host but I didn't remember exactly. Cheers, On 2/21/19 10:42 AM, Magicloud Magiclouds wrote: > Hi, > > I think I can build image of other architecture by using mkimage.sh > from aports/scripts. But when doing that, it would verify files signed > by aarch64 keys using x86_64 keys, and failed trusting. > > ``` > $ ./mkimage.sh --arch aarch64 --repository http://dl-cdn.alpinelinux.org/alpine/ > edge/main --profile arm > OK: 0 MiB in 0 packages > fetch http://dl-cdn.alpinelinux.org/alpine/edge/main/aarch64/APKINDEX.tar.gz > ERROR: http://dl-cdn.alpinelinux.org/alpine/edge/main: UNTRUSTED signature > WARNING: Ignoring APKINDEX.066df28d.tar.gz: No such file or directory > 1 errors; 0 distinct packages available > ``` > --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---