From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6524973730788016128 X-Received: by 10.80.206.8 with SMTP id y8mr1010321edi.1.1519418150218; Fri, 23 Feb 2018 12:35:50 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 10.80.185.67 with SMTP id m61ls3804810ede.4.gmail; Fri, 23 Feb 2018 12:35:49 -0800 (PST) X-Google-Smtp-Source: AH8x225l8GeO0OGjCqlbLU1y63gPzAKN0hL61lYFXvqA1jaOBHtm22G9+DL/ZXj0KWq6AUonSkit X-Received: by 10.80.202.201 with SMTP id f9mr1012177edi.12.1519418149512; Fri, 23 Feb 2018 12:35:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519418149; cv=none; d=google.com; s=arc-20160816; b=yCgf7gKLQQPSdDW1wUfRQ2P70HSWDNBHi0S3EQeRol6j8lKbsG28P7s6ztUx3Ba3to nSBY98WiHaJbhkpKVJkupq6YHdvwvJ6yfjttA/Yde9eh2CV1eos+egFrN+epi0eRh6Rb Gvupu2xfQPyNM0ghnIFYMhgoTpXvnX4zBCqd6fi/MYCY6zNhCOScZ63HerrUiDd2xhE6 SZSfUlvOJhh/hm/dIj3I3qEdu5ddw4XkT9Z6a/wQQQLIQI7vFvclFlD7O6XpBLmF8+6T k6SJhVr/WKADRsiEucoylItQ0x1Sj5cxn3lgF6ioqpV33MWEU41dB9oQX4suxEuAPzCE CtBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:references:to:subject :arc-authentication-results; bh=aNWAGzaNGGJKu/nmgicKnIEa4azUEG8LnXJ7V6k+f+4=; b=Q+0Gtz7fR/U0y/jXK+pnSs2QPQIIFRJAAzOxRkSZ8dNWpZTnvnkN6kfb2FgHV2Px/h xg0PqbooerE+d/s3yzf0zBGSP6x3h8yptSiG9f3xx28hOz2m8640R/0l0wLMVlONECoy KtszkhjlO8AR+p43ww4TaG7UyH3ChWn968QNB2ftcvOwtiuuz1scBAe9nXYIMk7u2UO6 JgroFFOobgm1jgSiw76d3rl8iuPStd/8nIg1lNpRVx6HtMjsNXamVpE5yMfIOyQiiovv 3Yym0v79HGz0CsJuIon88JPeoEt8nxLKhfn/1hEqBrJNR9xnNVfwDZxOelsey044lxcJ wRKg== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of jan.kiszka@siemens.com designates 192.35.17.2 as permitted sender) smtp.mailfrom=jan.kiszka@siemens.com Return-Path: Received: from thoth.sbs.de (thoth.sbs.de. [192.35.17.2]) by gmr-mx.google.com with ESMTPS id y16si69474edc.1.2018.02.23.12.35.49 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 23 Feb 2018 12:35:49 -0800 (PST) Received-SPF: pass (google.com: domain of jan.kiszka@siemens.com designates 192.35.17.2 as permitted sender) client-ip=192.35.17.2; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of jan.kiszka@siemens.com designates 192.35.17.2 as permitted sender) smtp.mailfrom=jan.kiszka@siemens.com Received: from mail1.siemens.de (mail1.siemens.de [139.23.33.14]) by thoth.sbs.de (8.15.2/8.15.2) with ESMTPS id w1NKZmqO000624 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 23 Feb 2018 21:35:48 +0100 Received: from [139.25.68.37] (md1q0hnc.ad001.siemens.net [139.25.68.37] (may be forged)) by mail1.siemens.de (8.15.2/8.15.2) with ESMTP id w1NKZmZQ016044; Fri, 23 Feb 2018 21:35:48 +0100 Subject: Re: [PATCH v2 0/5] Debootstrap integration To: Claudius Heine , Alexander Smirnov , claudius.heine.ext@siemens.com, isar-users@googlegroups.com References: <20180222131901.20915-1-claudius.heine.ext@siemens.com> <7f7c073f-804a-9f98-356d-7818928156ce@denx.de> From: Jan Kiszka Message-ID: <0aefe5d7-cf4f-b5c7-a58a-b6ca3c233142@siemens.com> Date: Fri, 23 Feb 2018 21:35:47 +0100 User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); de; rv:1.8.1.12) Gecko/20080226 SUSE/2.0.0.12-1.1 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666 MIME-Version: 1.0 In-Reply-To: <7f7c073f-804a-9f98-356d-7818928156ce@denx.de> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-TUID: 1aB17UXdwNT7 On 2018-02-23 08:40, Claudius Heine wrote: > Hi Alex, > > On 02/22/2018 03:21 PM, Alexander Smirnov wrote: >> On 02/22/2018 04:18 PM, claudius.heine.ext@siemens.com wrote: >>> From: Claudius Heine >>> >>> Hi, >>> >>> this is the new rebased and fixed version of this patchset. >>> >>> Cheers, >>> Claudius >>> >>> Changes from v1: >>>    - rebased to current next >>>    - added unmounting of /dev and /proc at the end of do_rootfs in >>> isar-image-base >>>      This was necessary for image file creation, otherwise it tried to >>>      package stuff from the host. >>>    - added 'isar-bootstrap:do_deploy' dependency to do_rootfs task in >>>      image.bbclass. >>>    - Changed 'RFSDIR' variable name to 'ROOTFSDIR' in >>>      isar-bootstrap-helper.bbclass to be consistent with the variable >>>      name in isar-bootstrap.bb >>>    - Moved 'isar-apt' apt-preference settings from isar-bootstrap.bb to >>>      isar-bootstrap-helper.bbclass >>>    - Removed '--no-install-recommends' parameters in favor of adding the >>>      apt configuration in 'isar-bootstrap.bb' >>>    - unmount and remove possible existing bootstraped directories before >>>      bootstrapping in do_bootstrap task of 'isar-bootstrap.bb' >>>    - changed from /dev ro bind mounts to mounting devtmpfs to /dev to be >>>      consistent with the other places where /dev is mounted. >>> >> >> $ time bitbake multiconfig:qemuarm-wheezy:isar-image-base >> multiconfig:qemuarm-jessie:isar-image-base >> multiconfig:qemuarm-stretch:isar-image-base >> multiconfig:qemui386-jessie:isar-image-base >> multiconfig:qemui386-stretch:isar-image-base >> multiconfig:qemuamd64-jessie:isar-image-base >> multiconfig:qemuamd64-stretch:isar-image-base >> multiconfig:rpi-jessie:isar-image-base >> multiconfig:qemuarm64-stretch:isar-image-base >> >> ERROR: mc:rpi-jessie:isar-bootstrap-1.0-r0 do_bootstrap: Function >> failed: do_bootstrap (log file is located at >> /home/builder/isar/build/tmp/work/raspbian-jessie-armhf/isar-bootstrap/temp/log.do_bootstrap.29056) >> >> ERROR: Logfile of failure stored in: >> /home/builder/isar/build/tmp/work/raspbian-jessie-armhf/isar-bootstrap/temp/log.do_bootstrap.29056 >> >> ERROR: Task >> (multiconfig:rpi-jessie:/home/builder/isar/meta/recipes-core/isar-bootstrap/isar-bootstrap.bb:do_bootstrap) >> failed with exit code '1' >> >> builder@zbook:~/isar$ cat >> /home/builder/isar/build/tmp/work/raspbian-jessie-armhf/isar-bootstrap/temp/log.do_bootstrap.29056 >> >> DEBUG: Executing shell function do_bootstrap >> I: Running command: debootstrap --arch armhf --foreign --verbose >> --variant minbase --components=main,contrib,non-free,firmware jessie >> /home/builder/isar/build/tmp/work/raspbian-jessie-armhf/isar-bootstrap/rootfs >> http://archive.raspbian.org/raspbian >> I: Retrieving Release >> I: Retrieving Release.gpg >> I: Checking Release signature >> E: Release signed by unknown key (key id 9165938D90FDDD2E) >> WARNING: exit code 1 from a shell command. >> ERROR: Function failed: do_bootstrap (log file is located at >> /home/builder/isar/build/tmp/work/raspbian-jessie-armhf/isar-bootstrap/temp/log.do_bootstrap.29056) > > Thx. > > Is that the only issue that occured? In other words do all the other > targets where the key was available on the host run through without any > problems and the resulting image looks good? I am just asking to > decrease iteration over the testing-fixing cycle. If that is the only > problem, then I guess that this patchset can be merged after I > successfully fixed the usage of repository keys, right? There are some more issues, will comment on them in the patches. This one here consists of several problems. First, we are missing the Raspbian repo key. The question is how to obtain it. We could do this: ---8<--- From: Jan Kiszka Subject: [PATCH] Carry Raspbian public key ring debootstrap only contains the Debian keys and requires a specific one for other bootstrap repositories. One of them we support is Raspbian. This imports the Raspbian public key in GPG format and makes them available for bootstrapping by defining DISTRO_KEYRING in the distro conf. Signed-off-by: Jan Kiszka --- meta-isar/conf/distro/raspbian-jessie.conf | 1 + .../isar-bootstrap/files/raspbian.public.key.gpg | Bin 0 -> 1225 bytes meta/recipes-core/isar-bootstrap/isar-bootstrap.bb | 10 ++++++++-- 3 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 meta/recipes-core/isar-bootstrap/files/raspbian.public.key.gpg diff --git a/meta-isar/conf/distro/raspbian-jessie.conf b/meta-isar/conf/distro/raspbian-jessie.conf index 51d3023..89b769f 100644 --- a/meta-isar/conf/distro/raspbian-jessie.conf +++ b/meta-isar/conf/distro/raspbian-jessie.conf @@ -9,3 +9,4 @@ DISTRO_COMPONENTS ?= "main contrib non-free firmware" DISTRO_APT_SOURCE ?= "http://archive.raspbian.org/raspbian" DISTRO_CONFIG_SCRIPT?= "raspbian-configscript.sh" DISTRO_KERNELS ?= "rpi rpi2 rpi-rpfv rpi2-rpfv" +DISTRO_KEYRING ?= "raspbian.public.key.gpg" diff --git a/meta/recipes-core/isar-bootstrap/files/raspbian.public.key.gpg b/meta/recipes-core/isar-bootstrap/files/raspbian.public.key.gpg new file mode 100644 index 0000000000000000000000000000000000000000..c438c3e4c06d6c679db3071c9bdda71416a99b35 GIT binary patch literal 1225 zcmV;)1UCDb0SyFCc*1D`2msGpm>Th%h_P)c%5B{Gj^+H_Vx<@C+wVtcMV`p^QtJm( zbt-pSjSf2f>lpyXa#ruMvl*a~bH)1r4uc;)MCe)%sbh>c#z@(>gCXt%zmPi`IKcBc z1hyn0(A*d@ut#D`JhgPk_BZ_ED2q-|uPxdFH$h_Xd)JqP=pRi8Y_L0PW&6Wj^RQBVSOQG@Z)vw5 z)exaU-m)Kpxmhg;7T+P}`5c0hS8Ka5QzA$ID<@INY+w(z2S*Q3r5UcakumY^UJ^D` z+EKZdQlTX$@Azb2fMoy?0RRECN=<2NWgt{&Z*6dMZ*CwcQeks&Vr6o2c_2_}AVg(i zX<=?4VRCI~W*|XQO?EabRz^@MAUthwbZB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