From: Patrick Williams <patrick@stwcx.xyz>
To: Alexander Kanavin <alex.kanavin@gmail.com>
Cc: openembedded-core@lists.openembedded.org,
Martin Siegumfeldt <mns@gomspace.com>,
Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Subject: Re: [OE-core] [PATCH] systemd.bbclass: fix postinst for real systemd-systemctl-native
Date: Fri, 30 May 2025 09:04:02 -0400 [thread overview]
Message-ID: <aDmswtbTZ-Yd_GsF@heinlein> (raw)
In-Reply-To: <CANNYZj90G4sbA7LY06DjmqXnnU9UQ=vMKD22XzcRHbvDu87m4A@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 2741 bytes --]
On Fri, May 30, 2025 at 01:19:25PM +0200, Alexander Kanavin wrote:
> On Wed, 28 May 2025 at 21:47, Patrick Williams <patrick@stwcx.xyz> wrote:
>
> > Walnascar is currently broken for template services and so is master.
> > My suggestion would be:
> >
> > - Revert 7a580800db39 in walnascar.
> > - Improve systemd_create_presets to handle template services in master.
> > - [Maybe] fix all the services failing per Mathieu on master.
> > - [Maybe] apply this change so that `systemd_postinst` runs
> > as it use to.
>
> Thanks, I appreciate you digging into the issue.
Thank you for the feedback Alex.
> That said, the plan to fix it needs to be reordered. We have a strict
> policy of fixing issues in master first, for good reason. Also,
> backporting the fixes to stable branches is much easier to get
> accepted than major reverts like that.
Agreed. I tried to do a simple revert locally and it had conflicts
already. It was easier to just do the needful in
systemd_create_presets.
This is done and ready for feedback:
https://lore.kernel.org/openembedded-core/20250529174427.2731440-1-patrick@stwcx.xyz/T/#u
> Also, if something currently quietly fails in poky-altcfg (it wasn't
> entirely clear from your analysis), then the fix shouldn't just
> address the issue, it should also make any possible fail a loud and
> hard one. So it doesn't quietly regress again.
poky-altcfg does not currently fail (or fail to perform).
- There are no template instances in any package in poky-altcfg that
rely on the use of SYSTEMD_SERVICE.
- The only template instance in poky-altcfg is created manually with
symlinks (see `systemd-serialgetty.bb:do_install`).
This problem only affects template instances:
SYSTEMD_SERVICE = "foo@bar.service" # Template instance
SYSTEMD_SERVICE = "foo.service" # Non-template instance
Prior to 7a580800db39, template instances listed in SYSTEMD_SERVICE
would have been enabled by the systemd_postinst hook that called [fake]
systemctl. After 7a580800db39, the systemd_postinst hook silently
skips.
Prior to 7a580800db39, non-template instances listed in SYSTEMD_SERVICE
were enabled by systemd_create_presets files (and also duplicatively
enabled by systemd_postinst). After 7a580800db39, non-template
instances are enabled only by the systemd_create_presets.
With my change linked above, the template instances will be enabled by
systemd_create_presets as well. Thus all instances (template or not) will be
handled by systemd_create_presets, and the systemd_postinst hook only has
effect when installing via an RPM and not when building a rootfs.
entirely.
--
Patrick Williams
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2025-05-30 13:04 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-28 3:56 [PATCH] systemd.bbclass: fix postinst for real systemd-systemctl-native Patrick Williams
2025-05-28 9:07 ` [OE-core] " Alexander Kanavin
2025-05-28 19:47 ` Patrick Williams
2025-05-30 11:19 ` Alexander Kanavin
2025-05-30 13:04 ` Patrick Williams [this message]
2025-05-28 12:33 ` Mathieu Dubois-Briand
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=aDmswtbTZ-Yd_GsF@heinlein \
--to=patrick@stwcx.xyz \
--cc=alex.kanavin@gmail.com \
--cc=mathieu.dubois-briand@bootlin.com \
--cc=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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox