From: "Maxim Yu. Osipov" <mosipov@ilbers.de>
To: Jan Kiszka <jan.kiszka@siemens.com>,
isar-users <isar-users@googlegroups.com>
Cc: "[ext] Henning Schild" <henning.schild@siemens.com>
Subject: Re: [PATCH v2] Refresh /etc/resolv.conf on partial rebuilds
Date: Wed, 14 Nov 2018 06:18:08 +0300 [thread overview]
Message-ID: <38e1b87e-d439-d766-4860-2766bd05a133@ilbers.de> (raw)
In-Reply-To: <c17d3bea-f65c-e2be-a76f-25163796d714@siemens.com>
On 11/12/18 12:15 PM, Jan Kiszka wrote:
> This addresses the scenario "mobile build host" where the resolv.conf as
> once generated during bootstrap and then propagated into the
> buildchroots as well the image rootfs may have become stale.
Applied to the 'next',
Thanks,
Maxim.
> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
> ---
>
> Changes in v2:
> - use "cp -L"
>
> meta/classes/buildchroot.bbclass | 6 +++++-
> meta/classes/isar-bootstrap-helper.bbclass | 3 +++
> 2 files changed, 8 insertions(+), 1 deletion(-)
>
> diff --git a/meta/classes/buildchroot.bbclass b/meta/classes/buildchroot.bbclass
> index 870d27c..34b7f59 100644
> --- a/meta/classes/buildchroot.bbclass
> +++ b/meta/classes/buildchroot.bbclass
> @@ -29,5 +29,9 @@ buildchroot_do_mounts() {
> mount --bind ${DL_DIR} ${BUILDCHROOT_DIR}/downloads
> mount -t devtmpfs -o mode=0755,nosuid devtmpfs ${BUILDCHROOT_DIR}/dev
> mount -t proc none ${BUILDCHROOT_DIR}/proc
> - fi'
> + fi
> +
> + # Refresh /etc/resolv.conf at this chance
> + cp -L /etc/resolv.conf ${BUILDCHROOT_DIR}/etc
> + '
> }
> diff --git a/meta/classes/isar-bootstrap-helper.bbclass b/meta/classes/isar-bootstrap-helper.bbclass
> index 1ac39db..e6a46ce 100644
> --- a/meta/classes/isar-bootstrap-helper.bbclass
> +++ b/meta/classes/isar-bootstrap-helper.bbclass
> @@ -106,6 +106,9 @@ setup_root_file_system() {
> sudo mount -t devtmpfs -o mode=0755,nosuid devtmpfs $ROOTFSDIR/dev
> sudo mount -t proc none $ROOTFSDIR/proc
>
> + # Refresh /etc/resolv.conf
> + sudo cp -L /etc/resolv.conf ${ROOTFSDIR}/etc
> +
> # Install packages:
> E="${@ bb.utils.export_proxies(d)}"
> export DEBIAN_FRONTEND=noninteractive
>
--
Maxim Osipov
ilbers GmbH
Maria-Merian-Str. 8
85521 Ottobrunn
Germany
+49 (151) 6517 6917
mosipov@ilbers.de
http://ilbers.de/
Commercial register Munich, HRB 214197
General Manager: Baurzhan Ismagulov
prev parent reply other threads:[~2018-11-14 3:18 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-10 17:35 [PATCH] " Jan Kiszka
2018-11-12 9:07 ` Henning Schild
2018-11-12 9:15 ` [PATCH v2] " Jan Kiszka
2018-11-14 3:18 ` Maxim Yu. Osipov [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=38e1b87e-d439-d766-4860-2766bd05a133@ilbers.de \
--to=mosipov@ilbers.de \
--cc=henning.schild@siemens.com \
--cc=isar-users@googlegroups.com \
--cc=jan.kiszka@siemens.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox