public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* [PATCH] meta-isar/example-raw: Remove /etc/resolv.conf in postinst
@ 2018-04-17 12:46 Henning Schild
  2018-04-17 13:03 ` Jan Kiszka
  2018-04-17 15:37 ` [PATCH] isar-bootstrap: Remove leaked hostname and resolv.conf from images Henning Schild
  0 siblings, 2 replies; 11+ messages in thread
From: Henning Schild @ 2018-04-17 12:46 UTC (permalink / raw)
  To: isar-users; +Cc: claudius.heine.ext, Henning Schild

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 <henning.schild@siemens.com>
---
 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


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2018-04-25 13:33 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-17 12:46 [PATCH] meta-isar/example-raw: Remove /etc/resolv.conf in postinst Henning Schild
2018-04-17 13:03 ` Jan Kiszka
2018-04-17 13:20   ` Henning Schild
2018-04-17 13:23     ` Jan Kiszka
2018-04-17 15:09       ` Henning Schild
2018-04-17 15:37 ` [PATCH] isar-bootstrap: Remove leaked hostname and resolv.conf from images Henning Schild
2018-04-19 15:35   ` Claudius Heine
2018-04-20 12:05     ` Henning Schild
2018-04-25 11:21   ` Jan Kiszka
2018-04-25 11:52     ` Alexander Smirnov
2018-04-25 13:33       ` Alexander Smirnov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox