From: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
To: Richard Purdie <richard.purdie@linuxfoundation.org>,
"openembedded-core@lists.openembedded.org"
<openembedded-core@lists.openembedded.org>
Subject: RE: [OE-core] [PATCH] rootfs-postcommands.bbclass: Change the default.target location
Date: Mon, 10 Jan 2022 20:33:44 +0000 [thread overview]
Message-ID: <a15707912cbd4ec39883439a542dccf7@axis.com> (raw)
In-Reply-To: <71cf0c9e5896ea005d3cfb75a67e8982f2a9aff0.camel@linuxfoundation.org>
> -----Original Message-----
> From: Richard Purdie <richard.purdie@linuxfoundation.org>
> Sent: den 10 januari 2022 16:44
> To: Peter Kjellerstedt <peter.kjellerstedt@axis.com>; openembedded-
> core@lists.openembedded.org
> Subject: Re: [OE-core] [PATCH] rootfs-postcommands.bbclass: Change the
> default.target location
>
> On Mon, 2022-01-10 at 16:37 +0100, Peter Kjellerstedt wrote:
> > Rather than adding a default.target in /etc/systemd/system, modify the
> > one in /usr/lib/systemd/system.
>
> Why?
>
> (the commit message needs to say why as well as what it does)
I thought it did (avoid having two links where one will suffice).
>
> Cheers,
>
> Richard
Thinking a bit more about this though, I am not sure I can win. We have
had a corresponding local patch for many years, and it seems natural to
have the link only in /usr/lib/systemd/system. However, for a system that
uses package management (which we do not), it may not be as natural,
since then updating the systemd package in runtime would restore systemd's
default.target rather than the one that was installed with the system.
Would you accept a patch that instead introduces a variable for the path
to the default.target link, with the following definition:
SYSTEMD_DEFAULT_TARGET_PATH ?= "${@bb.utils.contains('IMAGE_FEATURES', 'package-management', '${sysconfdir}/systemd/system', '${systemd_system_unitdir}', d}"
That would make it reasonably sane by default, but still allow it to be
overridden if you have other ideas for your system.
//Peter
next prev parent reply other threads:[~2022-01-10 20:33 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-10 15:37 [PATCH] rootfs-postcommands.bbclass: Change the default.target location Peter Kjellerstedt
2022-01-10 15:44 ` [OE-core] " Richard Purdie
2022-01-10 20:33 ` Peter Kjellerstedt [this message]
2022-01-10 20:39 ` Konrad Weihmann
2022-01-10 20:39 ` Alexander Kanavin
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=a15707912cbd4ec39883439a542dccf7@axis.com \
--to=peter.kjellerstedt@axis.com \
--cc=openembedded-core@lists.openembedded.org \
--cc=richard.purdie@linuxfoundation.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