From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6621803219847741440 X-Received: by 2002:a17:906:1603:: with SMTP id m3-v6mr333236ejd.16.1541760820653; Fri, 09 Nov 2018 02:53:40 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a17:906:19d5:: with SMTP id h21-v6ls220460ejd.12.gmail; Fri, 09 Nov 2018 02:53:40 -0800 (PST) X-Google-Smtp-Source: AJdET5c/rrqecLkULueeayBi+fc9aJYjW8Ogsv1jYYe/pjOY0oAw7WlnVt02HDTyHuKch3EjamPj X-Received: by 2002:a17:906:4f95:: with SMTP id o21-v6mr341580eju.6.1541760820143; Fri, 09 Nov 2018 02:53:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541760820; cv=none; d=google.com; s=arc-20160816; b=CQ6mFvJZ8t3vM5QYLP3wz643QDTNGNx0/RUJxn825XYblCunuOKupzoybNtHVXsDF2 izUIH6GkibIGSqsYiAPQ9Qcml1tw7PRxasgFg3+agrSdVXLJV9tsv22xFg4fHLvdjMAo 7XpMza56qVYyrz+8X2tVRi1Ld+fNiwNbmT1IiNr085vcZyxaW3V7umZ/IY3g3ovZ3Zm9 T45qX0wZO4NW7Ie9ia9WHgfWfmb1QZQXlCTm2caJcJMlu1rYqe3gJKBZn0S9Apb5VGXJ UFL8zaVWquu/yUUpAsPdY+WPJNVne2L21bRsBHaldVpzJREwOtWufZwy6a7hONZi/jjZ uOLQ== 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:organization:from:references:to:subject; bh=ZYoZdwAPZQmBRtbf++gZyoxb7AC8WF3sdw5ZVwWseJ8=; b=PcHu1HxupTxvlhh5/WcKJsyyIhE8Shu3Agzk63Fxw9WfVk0qTz3LCeQgb0ZpZSp7BC QIq/uXHuZ5CbUKUBzNY32Jnc+9OUR823CIS5bHJIEsNKcIz3oiPylkzVBexvYm8KGhkm xolO4wCw9TSpgGewWsZvbADoun4qhiqdA2k/zuVKinIIciA4pjaleX3QmqZ9a/aU1zcT S//kFipCAtXVdfmvyBZexwFC8D+uSwO7ecP9G2rcXJDf8768oV+0tAIYr2yeXB2v8YIx TBuVE8tytegGp1BS8rwsc9KdiOcxF9xpnzPk35hNKKKfoTPnqaibUVF5803yPwAii+Lr WHJA== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: best guess record for domain of mosipov@ilbers.de designates 85.214.62.211 as permitted sender) smtp.mailfrom=mosipov@ilbers.de Return-Path: Received: from aqmola.ilbers.de (aqmola.ilbers.de. [85.214.62.211]) by gmr-mx.google.com with ESMTPS id y16-v6si341226eds.0.2018.11.09.02.53.40 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 09 Nov 2018 02:53:40 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of mosipov@ilbers.de designates 85.214.62.211 as permitted sender) client-ip=85.214.62.211; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: best guess record for domain of mosipov@ilbers.de designates 85.214.62.211 as permitted sender) smtp.mailfrom=mosipov@ilbers.de Received: from [192.168.50.180] (nat-ppp-217.71.235.199-satnet-spb.ru [217.71.235.199] (may be forged)) (authenticated bits=0) by aqmola.ilbers.de (8.14.4/8.14.4/Debian-4+deb7u1) with ESMTP id wA9Araea015666 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT); Fri, 9 Nov 2018 11:53:38 +0100 Subject: Re: Adding additional apt repositories during the build To: Benedikt Niedermayr , isar-users@googlegroups.com References: <42954dda-cc28-4cf4-e1fe-a3b1b636a4a3@googlemail.com> From: "Maxim Yu. Osipov" Organization: ilbers GmbH Message-ID: Date: Fri, 9 Nov 2018 13:53:31 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <42954dda-cc28-4cf4-e1fe-a3b1b636a4a3@googlemail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-TUID: /8VW+m4IbJZJ Hi Benedikt, On 11/9/18 1:17 PM, 'Benedikt Niedermayr' via isar-users wrote: > Hi guys, > > I wanted to add additional repositories at the beginning of the build > (e.g for installing docker-ce) and I tried to add it to the > "DISTRO_APT_KEYS" variable. > > But doing that way debootstrap doesn't seem to work anymore: > > | I: Retrieving InRelease > | I: Retrieving Release > | I: Retrieving Release.gpg > | I: Checking Release signature > | E: Release signed by unknown key (key id EF0F382A1A7B6500) > | WARNING: exit code 1 from a shell command. > > > I think the default gpg keyring gets overwritten. > > Do you have any proposals or clean solutions for this? Yes, this is a known problem (I absolutely agree that this DISTRO_APT_KEYS is confusing) and I plan to fix it in a next couple of weeks. Thanks for your proposal - I'll think if installation of keys could be done with less "hooky" way. Regards, Maxim. > > For now I implemented a little hack to get things to work. > > Maybe we need a functionality in Isar which works like a hook based > mechanism, so we can add those > > to the initial build step when bootstrapping the rootfs. > > > isar-bootstrap-host.bbappend & isar-bootstrap-target.bbappend: > > do_bootstrap_append() { >     sudo install -v -m755 ${WORKDIR}/custom-setup.sh ${ROOTFSDIR}/ >     sudo flock "${ISAR_BOOTSTRAP_LOCK}"-c "\ >         set -e >         export DISTRO_SUITE="${@get_distro_suite(d, True)}" >         export DISTRO_ARCH="${DISTRO_ARCH}" >         chroot "${ROOTFSDIR}" /custom-setup.sh >     " >     sudo rm -f ${ROOTFSDIR}/custom-setup.sh > } > custom-setup.sh: > GPG_URL="https://download.docker.com/linux/debian/gpg" > apt-get install --no-install-recommends -y curl apt-transport-https > ca-certificates curl gnupg2 software-properties-common > curl -fsSL $GPG_URL |apt-key add - > echo "deb [arch=$DISTRO_ARCH] https://download.docker.com/linux/debian \ > $DISTRO_SUITE stable"|\ > tee /etc/apt/sources.list.d/docker.list > apt-get update -y > Regards > Benedikt > > -- > You received this message because you are subscribed to the Google > Groups "isar-users" group. > To unsubscribe from this group and stop receiving emails from it, send > an email to isar-users+unsubscribe@googlegroups.com > . > To post to this group, send email to isar-users@googlegroups.com > . > To view this discussion on the web visit > https://groups.google.com/d/msgid/isar-users/42954dda-cc28-4cf4-e1fe-a3b1b636a4a3%40googlemail.com > . > For more options, visit https://groups.google.com/d/optout. -- Maxim Osipov ilbers GmbH Maria-Merian-Str. 8 85521 Ottobrunn Germany +49 (151) 6517 6917 mosipov@ilbers.de http://ilbers.de/ Commercial register Munich, HRB 214197 General Manager: Baurzhan Ismagulov