Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id F3658CD5BD1 for ; Mon, 1 Jun 2026 12:58:39 +0000 (UTC) Received: from mail-wr1-f41.google.com (mail-wr1-f41.google.com [209.85.221.41]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.27870.1780318709323770264 for ; Mon, 01 Jun 2026 05:58:29 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=WnOve94a; spf=pass (domain: linuxfoundation.org, ip: 209.85.221.41, mailfrom: richard.purdie@linuxfoundation.org) Received: by mail-wr1-f41.google.com with SMTP id ffacd0b85a97d-45ef41adbc1so1835944f8f.0 for ; Mon, 01 Jun 2026 05:58:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; t=1780318707; x=1780923507; darn=lists.openembedded.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:from:to:cc:subject:date :message-id:reply-to; bh=wcQfFZI8fAWntnx8LypJ9CrrYgFgik9S0NcZec1NEnM=; b=WnOve94aXIp1eKgrWqzzxLQ0XRQ4mzkKFPeooUl7wYyxhzQ52O04qcOzpsdJDeKCF5 OVOES4yTQ//9usGs13Ka0aHjOM4ofaVto6n95MUG+YUZmBM3oQN3KL8ujoD4Oz7+6O79 YaRz0vRPYcWqJ0L1X7ZmesQFIZ2Uli+kOy2Fo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1780318707; x=1780923507; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=wcQfFZI8fAWntnx8LypJ9CrrYgF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LdiL/rgPoHef6 oOuNkI3KgKBFs4k+mGISb0LICrFKQ6wuO3NUUC7jmWL/4Lb2rL7nTzSbGQVnjngBLs4gm+IXoZ3 bTXpNq3ASwI3ljEmeAKSKMn X-Received: by 2002:a05:6000:4284:b0:45f:f142:d56a with SMTP id ffacd0b85a97d-45ff142d72bmr13528629f8f.20.1780318707431; Mon, 01 Jun 2026 05:58:27 -0700 (PDT) Received: from ?IPv6:2001:8b0:aba:5f3c:91e5:137:d314:95b7? ([2001:8b0:aba:5f3c:91e5:137:d314:95b7]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-45ef34c3081sm25362554f8f.15.2026.06.01.05.58.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Jun 2026 05:58:26 -0700 (PDT) Message-ID: Subject: Re: [OE-core] [PATCH] qemuboot.bbclass: regenerate .qemuboot.conf after do_image From: Richard Purdie To: sivakumar.bs@gmail.com, openembedded-core@lists.openembedded.org Date: Mon, 01 Jun 2026 13:58:25 +0100 In-Reply-To: <20260601112329.142238-1-sivakumar.bs@gmail.com> References: <20260601112329.142238-1-sivakumar.bs@gmail.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.56.2-9 MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Mon, 01 Jun 2026 12:58:39 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/237830 On Mon, 2026-06-01 at 16:53 +0530, Siva Balasubramanian via lists.openembed= ded.org wrote: > do_write_qemuboot_conf was chained after do_rootfs, so it only ran > when the rootfs was rebuilt. If only the kernel was rebuilt (or any > change that regenerates the image without invalidating the rootfs > sstate), the .qemuboot.conf was left stale while new image artifacts > were deployed with a new timestamp suffix. This caused runqemu to > reference mismatched or missing artifacts. >=20 > Move the task to run after do_image instead, so the conf file is > always consistent with whatever was last deployed. >=20 > Fixes: https://bugzilla.yoctoproject.org/show_bug.cgi?id=3D14520 > Signed-off-by: Siva Balasubramanian > --- > =C2=A0meta/classes-recipe/qemuboot.bbclass | 2 +- > =C2=A01 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/meta/classes-recipe/qemuboot.bbclass b/meta/classes-recipe/q= emuboot.bbclass > index 56106b1958..47ce16935f 100644 > --- a/meta/classes-recipe/qemuboot.bbclass > +++ b/meta/classes-recipe/qemuboot.bbclass > @@ -127,7 +127,7 @@ QB_DRIVE_TYPE ?=3D "/dev/sd" > =C2=A0inherit image-artifact-names > =C2=A0 > =C2=A0# Create qemuboot.conf > -addtask do_write_qemuboot_conf after do_rootfs before do_image > +addtask do_write_qemuboot_conf after do_image before do_build > =C2=A0 > =C2=A0def qemuboot_vars(d): > =C2=A0=C2=A0=C2=A0=C2=A0 build_vars =3D ['MACHINE', 'TUNE_ARCH', 'DEPLOY_= DIR_IMAGE', Shouldn't we be fixing the task's dependencies so that it runs at the right time anything it references changes?=C2=A0 I'm not really seeing how this will improve things if to use your example, the kernel is rebuilt since you haven't added a dependency on that... Cheers, Richard