From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6545397795972448256 X-Received: by 10.28.114.16 with SMTP id n16mr109601wmc.22.1523969181424; Tue, 17 Apr 2018 05:46:21 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:adf:bb13:: with SMTP id r19-v6ls372655wrg.11.gmail; Tue, 17 Apr 2018 05:46:20 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/A71SGEU45ZIMFOuwFF3EFzPy2aSC2K6PbpR1iykgi8JFMAj8//fgMTbxUes+Z00VirXwC X-Received: by 10.223.182.79 with SMTP id i15mr152615wre.9.1523969180739; Tue, 17 Apr 2018 05:46:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523969180; cv=none; d=google.com; s=arc-20160816; b=iUwGSs+fk2YeqUXUeNCCQZxLZmYdT8AHBdfnISEqug6ULFuGvYfZP4svcYU9zluKi5 yTJPtmn8KURiptbwjuXpm5AnDaAIliQD7jtKxRsgkqHn/GdMC7mD0aBUhiJ3Lsx7whqq 7jYDHZeydvift5ffdEqMDwekRAuTyHhvE5RfGKgRL7qjPsyt9mvnuU+2BqvrhiP2p4tT +JagL38vanrZx8LHQeUEprEjIfL5H5ZghH+YJxQXky6X2T9CVGP/Y4CL8ibWpsM0Agoe /t4DPwMwkt8Add3xBu85E6mhsPSiqYT+cKE/obUlyXAdJcUV2uFCjQIbKgR99zIWs83m fL8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:subject:cc:to:from:arc-authentication-results; bh=+FKVwATE5RCnOq64owC8gE+OJClyjpEYXBEakeSAIxg=; b=XVtwKvwQT7sKS+Aov8SIRyWdrE6Oy4Vo+kIwSYKaNz4UnMKdTuD6MtONtVdWiB5SuM 2W1w9bkO4HusUzsN1xLe+8qKhOhyCe1T47idWvssuHqYorPJoRKIoio8RVtSiUnwEaYl NbVL5Gqlpnjid+H46gRKpQtXMXDk5A6cGhy0x0L6HVZBFmYKc3uzj/5u0rVw7Os4D/lg Q9OB/YGlEFD9mDm+SIE0jGUO51F9UZnF3zBKUMpKQaD/jpxB9mJPvDTUZ9MHa8x/jmWT B7R+kb1yAM5jjQpHQ78ABas53SX0lMjDIgOawVbP+cg6BXTSKK8Lw2nCL2D4kLhhz6r6 fIaw== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of henning.schild@siemens.com designates 192.35.17.14 as permitted sender) smtp.mailfrom=henning.schild@siemens.com Return-Path: Received: from david.siemens.de (david.siemens.de. [192.35.17.14]) by gmr-mx.google.com with ESMTPS id p21si359056wmc.1.2018.04.17.05.46.20 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 17 Apr 2018 05:46:20 -0700 (PDT) Received-SPF: pass (google.com: domain of henning.schild@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 henning.schild@siemens.com designates 192.35.17.14 as permitted sender) smtp.mailfrom=henning.schild@siemens.com Received: from mail3.siemens.de (mail3.siemens.de [139.25.208.14]) by david.siemens.de (8.15.2/8.15.2) with ESMTPS id w3HCkKmZ005106 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Tue, 17 Apr 2018 14:46:20 +0200 Received: from md1pvb1c.ad001.siemens.net (md1pvb1c.ad001.siemens.net [139.25.68.40] (may be forged)) by mail3.siemens.de (8.15.2/8.15.2) with ESMTP id w3HCkJwc020043; Tue, 17 Apr 2018 14:46:19 +0200 From: Henning Schild To: isar-users@googlegroups.com Cc: claudius.heine.ext@siemens.com, Henning Schild Subject: [PATCH] meta-isar/example-raw: Remove /etc/resolv.conf in postinst Date: Tue, 17 Apr 2018 14:46:18 +0200 Message-Id: <20180417124618.30964-1-henning.schild@siemens.com> X-Mailer: git-send-email 2.16.1 X-TUID: 5euDyjKXUvVK 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 -- 2.16.1