From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6662700470316826624 X-Received: by 2002:a1c:2545:: with SMTP id l66mr266696wml.14.1551431908015; Fri, 01 Mar 2019 01:18:28 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a1c:f107:: with SMTP id p7ls412418wmh.6.canary-gmail; Fri, 01 Mar 2019 01:18:27 -0800 (PST) X-Google-Smtp-Source: AHgI3IYS9uu4OuKQ5abfz3fcsj/Oy2GJW9EB8Mjk/o97km6IyzeX/hNQLR0SwNfTkgj7pfwj4HL8 X-Received: by 2002:a1c:a943:: with SMTP id s64mr244675wme.4.1551431907632; Fri, 01 Mar 2019 01:18:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551431907; cv=none; d=google.com; s=arc-20160816; b=WJHLz3FXEmo7TVqZetGal2Lerxo+j1N+qQH0LXl7dVWJ9emrcU36rhlvahzcM0gWGM KVos0RNXGUK0Vl4xaZzrXNI1IEXv27sG6sB4//6p4dwKeBAz+YBspphl93KYX7/N9T0a VMv7yHxHR0+T8YZWwNhRErmHYLh8zuoEpo7gEe0o9T7e2un+RJGODesxpe0nC48P6l0B lO/x7KZH9rrZvytlhm9H2TfYe7S6gTRyNXs5PdafAveV5fYpPwbXzgSnWVAixU8Ar/ex ncZ/tlRg4irgJhOZo9ZddmbZMwM8cmE1U73+Nyu+flO1hzGkRNOERuXOLTYGuQsl46bo jtYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:in-reply-to:content-disposition:content-description :mime-version:references:message-id:subject:cc:to:from:date; bh=7FAIBIFo5S5zxpc2JAYl/ugGHDU4etNiJvjuXJuRQrU=; b=L6jDl8WNOcT6LVlcbpyhvRhy4Q/gyo3m8ZFJFE2hbBe6wPQJu3TJJHxsfEOOcILUlN 81MfQKqBVa02DY5vBUgMQ0hVtfH3QO45JwlrTyAkb/t2lZTthwCVYnIo2DVR3fpZnUDN Z0O/Nvkn5+3MSiq2C+JxJg0stg2LIGCLMV0e1atO8YtJwCH5CwR02WwzhJBDueTCZfHm EFYegvGkwR6jt535swVztzfUYowaW0f/hHv82IJ1RrvjB49fSfGatrcI2MX6n1osqw6V 0fvyQeTsdgvlcGu2iHp+yWai//jsjBuCsOF5PdhhUuo1Nrr2yyk+YKC1Q+1fStnjd7UK 5siQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of andreas.reichel.ext@siemens.com designates 194.138.37.40 as permitted sender) smtp.mailfrom=andreas.reichel.ext@siemens.com Return-Path: Received: from gecko.sbs.de (gecko.sbs.de. [194.138.37.40]) by gmr-mx.google.com with ESMTPS id 60si250922wra.3.2019.03.01.01.18.27 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 01 Mar 2019 01:18:27 -0800 (PST) Received-SPF: pass (google.com: domain of andreas.reichel.ext@siemens.com designates 194.138.37.40 as permitted sender) client-ip=194.138.37.40; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of andreas.reichel.ext@siemens.com designates 194.138.37.40 as permitted sender) smtp.mailfrom=andreas.reichel.ext@siemens.com Received: from mail1.sbs.de (mail1.sbs.de [192.129.41.35]) by gecko.sbs.de (8.15.2/8.15.2) with ESMTPS id x219IRwE005062 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Fri, 1 Mar 2019 10:18:27 +0100 Received: from iiotirae (golem.ppmd.siemens.net [139.25.69.17]) by mail1.sbs.de (8.15.2/8.15.2) with SMTP id x219IRhx011138; Fri, 1 Mar 2019 10:18:27 +0100 Date: Fri, 1 Mar 2019 10:16:50 +0100 From: Andreas Reichel To: Henning Schild Cc: isar-users@googlegroups.com Subject: Re: [PATCH v2 1/3] Fix and simplify apt keyring generation Message-ID: <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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Description: message Content-Disposition: inline In-Reply-To: <20190227171242.5c2c73b4@md1za8fc.ad001.siemens.net> User-Agent: Mutt/1.11.3 (2019-02-01) X-TUID: nO+LdS9pjfI1 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. Andreas -- Andreas Reichel Dipl.-Phys. (Univ.) Software Consultant Andreas.Reichel@tngtech.com, +49-174-3180074 TNG Technology Consulting GmbH, Betastr. 13a, 85774 Unterfoehring Geschaeftsfuehrer: Henrik Klagges, Dr. Robert Dahlke, Gerhard Mueller Sitz: Unterfoehring * Amtsgericht Muenchen * HRB 135082