From: "Martin Siegumfeldt" <mns@gomspace.com>
To: openembedded-core@lists.openembedded.org
Subject: Re: [walnascar][PATCH 3/3] systemd.bbclass: Make systemd_postinst run as intended
Date: Wed, 24 Sep 2025 11:03:12 -0700 [thread overview]
Message-ID: <29002.1758736992926980722@lists.openembedded.org> (raw)
In-Reply-To: <20250912155712.3340513-3-pkj@axis.com>
[-- Attachment #1: Type: text/plain, Size: 1239 bytes --]
Hi Peter,
After pulling poky [walnascar] today, our image build broke with the below:
WARNING: nanomind-dev-image-1.0-r0 do_rootfs: nanomind-gpio-ctrl.postinst returned 1, marking as unpacked only, configuration required on target.
WARNING: nanomind-dev-image-1.0-r0 do_rootfs: nanomind-bank-ctrl.postinst returned 1, marking as unpacked only, configuration required on target.
ERROR: nanomind-dev-image-1.0-r0 do_rootfs: Postinstall scriptlets of ['nanomind-gpio-ctrl', 'nanomind-bank-ctrl'] have failed. If the intention is to defer them to first boot,
then please place them into pkg_postinst_ontarget:${PN} ().
Deferring to first boot via 'exit 1' is no longer supported.
I noticed this particular commit, and reverting it resolves the breakage. The recipe is quite trivial IMO:
inherit systemd
RDEPENDS:${PN} = "libgpiod-tools"
SYSTEMD_SERVICE:${BPN} = "${BPN}@.service"
SRC_URI = "file://${SYSTEMD_SERVICE:${BPN}}"
S = "${WORKDIR}/sources"
UNPACKDIR = "${S}"
do_install () {
install -d ${D}${systemd_system_unitdir}
install -m 0644 ${UNPACKDIR}/${SYSTEMD_SERVICE:${BPN}} ${D}${systemd_system_unitdir}
}
We are building a readonly rootfs, could this be an issue combined with your patch?
Thanks,
Martin
[-- Attachment #2: Type: text/html, Size: 1550 bytes --]
next prev parent reply other threads:[~2025-09-24 18:03 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-12 15:57 [walnascar][PATCH 1/3] systemd-systemctl-native: Use += instead of :append Peter Kjellerstedt
2025-09-12 15:57 ` [walnascar][PATCH 2/3] systemd-systemctl-native: Install systemd-sysv-install Peter Kjellerstedt
2025-09-12 15:57 ` [walnascar][PATCH 3/3] systemd.bbclass: Make systemd_postinst run as intended Peter Kjellerstedt
2025-09-24 18:03 ` Martin Siegumfeldt [this message]
2025-09-24 19:44 ` [OE-core] " Peter Kjellerstedt
2025-09-25 6:36 ` Martin Siegumfeldt
2025-09-29 5:52 ` Martin Siegumfeldt
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=29002.1758736992926980722@lists.openembedded.org \
--to=mns@gomspace.com \
--cc=openembedded-core@lists.openembedded.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.