On 10.01.22 21:33, Peter Kjellerstedt wrote:
-----Original Message-----
From: Richard Purdie <richard.pur...@linuxfoundation.org>
Sent: den 10 januari 2022 16:44
To: Peter Kjellerstedt <peter.kjellerst...@axis.com>; openembedded-
c...@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}"
IMO that would look overly complicated.
Just pointing out that, with your patch, people can alter the default
target by placing an appropriate link in /etc/systemd/... to override
the default choices would be enough.
I guess changing things in /lib/systemd for an image makes more sense,
it only has to be named in the commit message
Honestly I don't think it needs another variable to achieve the goal you
had in mind
Konrad
That would make it reasonably sane by default, but still allow it to be
overridden if you have other ideas for your system.
//Peter
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#160378):
https://lists.openembedded.org/g/openembedded-core/message/160378
Mute This Topic: https://lists.openembedded.org/mt/88325758/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-