From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 7304967695777136640 X-Received: by 2002:a05:622a:178f:b0:423:839d:9fc5 with SMTP id s15-20020a05622a178f00b00423839d9fc5mr22943271qtk.56.1701249753233; Wed, 29 Nov 2023 01:22:33 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:622a:180e:b0:423:e09f:e8dd with SMTP id t14-20020a05622a180e00b00423e09fe8ddls1563476qtc.0.-pod-prod-04-us; Wed, 29 Nov 2023 01:22:32 -0800 (PST) X-Google-Smtp-Source: AGHT+IF2DB6DhWIZKrnFj389OUQ7WTXzC2Aq/UyoIfDYMatxbbHfvLcCb2C0ekmBtI0vcQqCo111 X-Received: by 2002:a05:6122:90c:b0:4ac:67f4:ce61 with SMTP id j12-20020a056122090c00b004ac67f4ce61mr19240720vka.8.1701249752092; Wed, 29 Nov 2023 01:22:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701249752; cv=none; d=google.com; s=arc-20160816; b=CT147gAeH1Gefr7yMrszuZZ+r5+h9bTTzmGH1tomzvBLXBDL9d+CJ7m4LFhNTwOCqD zy+EGcnP+dHR8ZGDvJCANx+/HzPT4yX7gw6GAGHErH24XuYWAOs3MirS3BiQAcLjhlwo 9IrkWkdVG+LDSLuV9Lby1CMtGrCTJgjSS8/5LKKenCC2kKOlvY7jO+Ntuq1ICGqK9xq4 ddJ4BptyPMWkxxD556mUsi0o09XOyUQw3EkzcaZhzTYFHQdE1EauxvVSb0Zcf8hlAKZV I4T6ScGF7YXCGqjL3f9DiORWzRURaKh4jhcTyeT3XAyRFFg2ghEGR1MJsGxcffmCTMmg hprg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id; bh=GfBeauT6wRt/oE7cdp4um6ceiOQJdbfAzHOJBsnRjUk=; fh=5awuouQdXUrrrWf1QYR5ejiN5T+08HjjMprs1Otr0CA=; b=x0GUeSBpz0f8gUbiXj80r9Z0wRwdhGCqbloc2K5F+0IMbI/xvSjrt/mCGGSLhZ1Fgp eovF7WeSSKRIikxOVW3y2nQT2ExjkBpyDtlCX0AO54JHqU4Z6vCs5K+WpH1a0UqC7J0p 3yeuswvpRv3XbwSOqyJd2TE1BrU+svump/BjGPW7gkG4he69mfIbowFdwBYe4vjQUqVS RGn9f8DRIkKGCaQsSu9w6c9aaAxTZ+LIEd8RCxdClAb6GahhDdMX9bNHar6611lCHOSV 5Luo3IfJspBCDjGJm8rrcQVuZPCppuvd4Hu66AXSyIsoxIbrS0qRHJfqvtjt1pz3llIs XxOw== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=ubely@ilbers.de Return-Path: Received: from shymkent.ilbers.de (shymkent.ilbers.de. [85.214.156.166]) by gmr-mx.google.com with ESMTPS id fi26-20020a0561224d1a00b004abdf59bcfcsi1838844vkb.3.2023.11.29.01.22.30 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 29 Nov 2023 01:22:32 -0800 (PST) Received-SPF: pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) client-ip=85.214.156.166; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=ubely@ilbers.de Received: from [127.0.0.1] (host-80-81-17-52.static.customer.m-online.net [80.81.17.52]) (authenticated bits=0) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPSA id 3AT9MN4C023879 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 29 Nov 2023 10:22:25 +0100 Message-ID: <4ca41354aa3733004f7fa4e66b26eee47252a454.camel@ilbers.de> Subject: Re: [PATCH] meta/classes/rootfs.bbclass:systemd-resolved fix build issue From: Uladzimir Bely To: Shivaschandra KL , isar-users@googlegroups.com Date: Wed, 29 Nov 2023 12:22:50 +0300 In-Reply-To: <20231124100353.45847-1-Shivaschandra_KL@mentor.com> References: <20231124100353.45847-1-Shivaschandra_KL@mentor.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.50.1 (by Flathub.org) MIME-Version: 1.0 X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on shymkent.ilbers.de X-TUID: sho/MIQbZ3H9 On Fri, 2023-11-24 at 05:03 -0500, Shivaschandra KL wrote: > From: Shivaschandra KL >=20 > 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. >=20 > Signed-off-by: Shivaschandra K L > --- > =C2=A0meta/classes/rootfs.bbclass | 3 +++ > =C2=A01 file changed, 3 insertions(+) >=20 > 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] =3D "1" > =C2=A0rootfs_install_resolvconf() { > =C2=A0=C2=A0=C2=A0=C2=A0 if [ "${@repr(bb.utils.to_boolean(d.getVar('BB_N= O_NETWORK')))}" > !=3D "True" ] > =C2=A0=C2=A0=C2=A0=C2=A0 then > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 if [ -L "${ROOTFSDIR}/etc/res= olv.conf" ]; then > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 sudo = unlink "${ROOTFSDIR}/etc/resolv.conf" > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 fi > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 sudo cp -rL /etc/resolv.= conf '${ROOTFSDIR}/etc' > =C2=A0=C2=A0=C2=A0=C2=A0 fi > =C2=A0} > --=20 > 2.39.2 >=20 Applied to next, thanks.