From: Uladzimir Bely <ubely@ilbers.de>
To: Shivaschandra KL <Shivaschandra_KL@mentor.com>,
isar-users@googlegroups.com
Subject: Re: [PATCH] meta/classes/rootfs.bbclass:systemd-resolved fix build issue
Date: Wed, 29 Nov 2023 12:22:50 +0300 [thread overview]
Message-ID: <4ca41354aa3733004f7fa4e66b26eee47252a454.camel@ilbers.de> (raw)
In-Reply-To: <20231124100353.45847-1-Shivaschandra_KL@mentor.com>
On Fri, 2023-11-24 at 05:03 -0500, Shivaschandra KL wrote:
> From: Shivaschandra KL <shivaschandra.k-l@siemens.com>
>
> Building images with systemd-resolved package included using
> IMAGE_PREINSTALL,
> fails due to dangling symlink error. This is due to pre-existing
> symlink
> for /etc/resolv.conf, created by installation of systemd-resolved.
> So we need to ensure that, we unlink and symlink existing for
> /etc/resolv.conf.
>
> Signed-off-by: Shivaschandra K L <shivaschandra.k-l@siemens.com>
> ---
> meta/classes/rootfs.bbclass | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/meta/classes/rootfs.bbclass
> b/meta/classes/rootfs.bbclass
> index 65574a6c..1b95115a 100644
> --- a/meta/classes/rootfs.bbclass
> +++ b/meta/classes/rootfs.bbclass
> @@ -134,6 +134,9 @@ rootfs_install_resolvconf[weight] = "1"
> rootfs_install_resolvconf() {
> if [ "${@repr(bb.utils.to_boolean(d.getVar('BB_NO_NETWORK')))}"
> != "True" ]
> then
> + if [ -L "${ROOTFSDIR}/etc/resolv.conf" ]; then
> + sudo unlink "${ROOTFSDIR}/etc/resolv.conf"
> + fi
> sudo cp -rL /etc/resolv.conf '${ROOTFSDIR}/etc'
> fi
> }
> --
> 2.39.2
>
Applied to next, thanks.
prev parent reply other threads:[~2023-11-29 9:22 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-24 10:03 Shivaschandra KL
2023-11-29 9:22 ` Uladzimir Bely [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=4ca41354aa3733004f7fa4e66b26eee47252a454.camel@ilbers.de \
--to=ubely@ilbers.de \
--cc=Shivaschandra_KL@mentor.com \
--cc=isar-users@googlegroups.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