From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6545397795972448256 X-Received: by 2002:a19:c354:: with SMTP id t81-v6mr123999lff.1.1523970211217; Tue, 17 Apr 2018 06:03:31 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 10.46.82.84 with SMTP id g81ls156029ljb.9.gmail; Tue, 17 Apr 2018 06:03:30 -0700 (PDT) X-Google-Smtp-Source: AIpwx48gOhWiBBqhrXFsUOwV0jXBYizhi0gIAczJObxKgx5vMN1MX0wrmJ3HNtcX//9eCTuBrD1W X-Received: by 10.46.149.216 with SMTP id y24mr96367ljh.32.1523970210521; Tue, 17 Apr 2018 06:03:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523970210; cv=none; d=google.com; s=arc-20160816; b=yvu+uyH1+Bq2HQnvzUDyCl7Vdss3DkoXjnspmV7qIKTAneH8F6T+uBc8YBD2oRP1UW WeYkGU0y8WAhN2imvSAiE5ov8a6gfO/YW+j3SOy5Gg4DdOcGhJ+/NXhwan3pr1yCIWM6 cTYHlZ8W+yt1B0D0vgxVR1DhPpwzhz9jSiSpfjGrrNcBE0CJXDMbSgJW4qVh15mx6auK 4zmIUJ7MaYgESYCyGUNjOaxOZa8qgDYd0xsHZt+oy6IEv3rwQK3RTjRs2QlQl7hHCti4 HdA41G1Gtir55nQQRdhwYOxa9X1o9t1qZCeACUuAjcMZabs+M1gOD3pTzf5iyzAxW9SA z/cw== 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:openpgp:from:references:cc:to:subject :arc-authentication-results; bh=71yEHxvxuqEQDc8cgvZkdayyrOch1Kz1gUWiBj1eZmc=; b=GvO3tKVA6x1L/tb70Mxmxk3vA5XgTPmx8N4XvUjbiXH/pdv+2wcSYrrjzTlbE6/DaP x9kK3h2hW88gdF4DFRmWFyG5vNdf4/k7jbfdNTvN1NQElwtEY63oYdiMrKqvIleeMeDZ bxXiL8valAC4q/OrzYHB+QdhGE8wHB4ak90b3OG9nYDmElNiGofwBnZbAPOV9P0OxgtB a7YQidWbsyew112WbvQK0y2tcMKYzPq5wIEoZeDeSwqDMhmpt4k0byS/KX7RSdxr1rTc B2+NJhSemPSFbVTXuHwkWNUZrKD6sN0lRJC7tBd+M9MTdtsi+Da+WSDH1Wm4FqEiL+tR enqw== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of jan.kiszka@siemens.com designates 192.35.17.14 as permitted sender) smtp.mailfrom=jan.kiszka@siemens.com Return-Path: Received: from david.siemens.de (david.siemens.de. [192.35.17.14]) by gmr-mx.google.com with ESMTPS id h12si137635ljg.2.2018.04.17.06.03.30 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 17 Apr 2018 06:03:30 -0700 (PDT) Received-SPF: pass (google.com: domain of jan.kiszka@siemens.com designates 192.35.17.14 as permitted sender) client-ip=192.35.17.14; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of jan.kiszka@siemens.com designates 192.35.17.14 as permitted sender) smtp.mailfrom=jan.kiszka@siemens.com Received: from mail1.siemens.de (mail1.siemens.de [139.23.33.14]) by david.siemens.de (8.15.2/8.15.2) with ESMTPS id w3HD3T1A007802 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Tue, 17 Apr 2018 15:03:29 +0200 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 w3HD3TS1019308; Tue, 17 Apr 2018 15:03:29 +0200 Subject: Re: [PATCH] meta-isar/example-raw: Remove /etc/resolv.conf in postinst To: "[ext] Henning Schild" , isar-users@googlegroups.com Cc: claudius.heine.ext@siemens.com References: <20180417124618.30964-1-henning.schild@siemens.com> From: Jan Kiszka Openpgp: preference=signencrypt Message-ID: <9f1829c8-331e-031c-8c03-37cc5b76c44a@siemens.com> Date: Tue, 17 Apr 2018 15:03:28 +0200 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: <20180417124618.30964-1-henning.schild@siemens.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-TUID: GXUzN1ekOMcq On 2018-04-17 14:46, [ext] Henning Schild wrote: > Issue: debootstrap copies /etc/resolv.conf from the host into the > rootfs, and we need it there to use apt-get. But we do not always want > it there after we are done installing > > Fix: remove the leaked file in our image customization package, to reach > a defined state. That happens to be the state we had with multistrap. > > Impact: images will not contain a resolv.conf anymore, just like in the > multistrap days. If you want one do not install example-raw and > customize in your own hook > > Signed-off-by: Henning Schild > --- > meta-isar/recipes-app/example-raw/files/postinst | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/meta-isar/recipes-app/example-raw/files/postinst b/meta-isar/recipes-app/example-raw/files/postinst > index f60be8c..385473e 100644 > --- a/meta-isar/recipes-app/example-raw/files/postinst > +++ b/meta-isar/recipes-app/example-raw/files/postinst > @@ -19,4 +19,8 @@ chown -R isar:isar /var/lib/isar > # but we take the same password for this example > echo "root:root" | chpasswd > > +# debootstrap will leak these two files from the build host, get them > +# into a defined state > +# every image will have to handle these two somehow > echo "isar" > /etc/hostname > +rm -f /etc/resolv.conf That cleaning should go into the generic images. It's not a customization. Jan -- Siemens AG, Corporate Technology, CT RDA IOT SES-DE Corporate Competence Center Embedded Linux