From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6662700470316826624 X-Received: by 2002:a1c:1a47:: with SMTP id a68mr301430wma.18.1551435109255; Fri, 01 Mar 2019 02:11:49 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:adf:81cb:: with SMTP id 69ls1847872wra.10.gmail; Fri, 01 Mar 2019 02:11:48 -0800 (PST) X-Google-Smtp-Source: APXvYqwecShTGIny6IoBrewE1VJPxZUEvxK9X9J7A6/75Bj1Hz1U9Hf3hn2cx3ZSGPkKtx1VDS0R X-Received: by 2002:adf:ee89:: with SMTP id b9mr225631wro.23.1551435108826; Fri, 01 Mar 2019 02:11:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551435108; cv=none; d=google.com; s=arc-20160816; b=uDpbXs310Y094SoQ8xqwA2fvd+EGNhCSYxHJaAehlnJiKqLvEL+2xKydCK13AMhxBD at7n95yA6HyFriZUY/JkOZomgYXCEax9AzDSct/4NsvQQSNpl9G8xHIZoXPj/vQJ0Nvw EebMNVtKV0022Q8Nv47SUvWQgafjxO9fOxJyNtfi16rXdn4db25vePGcKQLOo9zmpuDx UroW++2V/IbtuTnboMhtaWP4AT2AyqR4+7itn8Gi2aeWHKYjJIBuL9kLE4b60Sx6LNRS kFyk+oJT7Z6O1aeEtVXDMP4msUHuif769EKUP454fQdBq37PausZFqE13BkpLrbjOXet XBPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date; bh=OYQfiVhe/C6qZEAuYslaupdXdMuBU94bgTctHX96vMc=; b=qJWtRkTMFHbwtTsiqIueUCkKYwfflwjg7Nlj4HdSo8hHsYufBrF0y2E3c0pAq8q9r6 yimufeT9Q2Sq4NSPfkwxIxcsJ9Fe5DC9S14JPpuB4x+Lp+3bcVifFL9WTlzXMmozFYxa TGH68ygx7UggZ+5pkdFrGtvnQ4iDjUIyVwRVwZudEeZGF+fbgAkt1Nxud9CKQ/BhvmmD IX7NLBE74z++DEfxi/vKbtCSpewVLVEAhV97dAMoX470Susyyz2O/1bcvMGWN8CthU40 ME+qiFc2VKXv97WScudaqouhY0dw4IggjhKbLHN6QcMT+Zj90FkL3eVaGbQXMuWj/XUe pRvg== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of henning.schild@siemens.com designates 192.35.17.28 as permitted sender) smtp.mailfrom=henning.schild@siemens.com Return-Path: Received: from goliath.siemens.de (goliath.siemens.de. [192.35.17.28]) by gmr-mx.google.com with ESMTPS id 60si254599wra.3.2019.03.01.02.11.48 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 01 Mar 2019 02:11:48 -0800 (PST) Received-SPF: pass (google.com: domain of henning.schild@siemens.com designates 192.35.17.28 as permitted sender) client-ip=192.35.17.28; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of henning.schild@siemens.com designates 192.35.17.28 as permitted sender) smtp.mailfrom=henning.schild@siemens.com Received: from mail1.sbs.de (mail1.sbs.de [192.129.41.35]) by goliath.siemens.de (8.15.2/8.15.2) with ESMTPS id x21ABmt7006616 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Fri, 1 Mar 2019 11:11:48 +0100 Received: from md1za8fc.ad001.siemens.net ([139.25.69.211]) by mail1.sbs.de (8.15.2/8.15.2) with ESMTP id x21ABmsn011532; Fri, 1 Mar 2019 11:11:48 +0100 Date: Fri, 1 Mar 2019 11:11:47 +0100 From: Henning Schild To: Andreas Reichel Cc: Subject: Re: [PATCH v2 1/3] Fix and simplify apt keyring generation Message-ID: <20190301111147.29051eb0@md1za8fc.ad001.siemens.net> In-Reply-To: <20190301091650.GA13010@iiotirae> References: <20190227151856.11594-1-andreas.reichel.ext@siemens.com> <20190227151856.11594-2-andreas.reichel.ext@siemens.com> <20190227171242.5c2c73b4@md1za8fc.ad001.siemens.net> <20190301091650.GA13010@iiotirae> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-TUID: hzbjNDFX6Djq Am Fri, 1 Mar 2019 10:16:50 +0100 schrieb Andreas Reichel : > On Wed, Feb 27, 2019 at 05:12:42PM +0100, Henning Schild wrote: > > Am Wed, 27 Feb 2019 16:18:54 +0100 > > schrieb "[ext] Andreas J. Reichel" > > : > > > From: Andreas Reichel > > > > > > + > > > + if [ -d ${TMPDIR}/aptkeys ]; then > > > + for keyfile in ${TMPDIR}/aptkeys/* > > > + do > > > + kfn="tmp/$(basename $keyfile)" > > > + cp $keyfile "$ROOTFSDIR/$kfn" > > > + sudo -E chroot "$ROOTFSDIR" /usr/bin/apt-key add > > > "/$kfn" > > > > Would probably be a good idea to work in /tmp/ as well and in a > > subdir. Try naming your key "root" or "usr" ... > > > I AM working in /tmp/, ... a subdir is not needed since we directly > work with the file names. > This is not " a key ", these are arbitrarily many keys and the name of > the key files don't change between the host, the build and target > chroots. I see the "tmp/" is in $kfn, might be more readable to have in the the cp and apt-key. Henning > Andreas >