Re: [OE-core] user/group XXX does not exist, using root with RPM/DNF packaging in Hardknott and Honister
From: Khem Raj <hidden>
Date: 2021-09-24 17:05:30
On Fri, Sep 24, 2021 at 9:36 AM Böszörményi Zoltán [off-list ref] wrote:
On 2021. 09. 24. 18:22, Khem Raj wrote:quoted
On 9/24/21 7:02 AM, Böszörményi Zoltán wrote:quoted
Hi, I have a special package that creates users and groups via inherit useradd. This package doesn't depend on any others but it is depended on, both via DEPENDS and RDEPENDS by packages using those users/groups in their do_install scripts. This works for packaging becase these ownerships are encoded in the packages, confirmed by rpm -qp --dump ... However, during do_rootfs, a couple of "user/group XXX does not exist, using root" messages appear for the packages depending on others creating these users/groups. log.do_rootfs shows that the package installation ordering does not follow RDEPENDS. Instead, it's practically an alphabetical order when running dnf. This doesn't just involve my custom packages, but also clamav plus another one in which I ship a small limited set of virus signatures, also chown'd to clamav and with RDEPENDS on clamav. What is the correct solution to this?You can define it via conf metadata e.g. INHERIT += "extrausers" EXTRA_USERS_PARAMS += "\ useradd foo; \ usermod -p 'XXXX' foo; \ usermod -a -G adm foo; \ usermod -a -G video foo; \ usermod -a -G audio foo; \ usermod -a -G systemd-journal foo; \ "Thanks, I will try it. You mean local.conf or layer.conf?
local.conf or site.conf or your distro conf anyone is ok
quoted
quoted
Thanks in advance, Zoltán Böszörményi-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#156334): https://lists.openembedded.org/g/openembedded-core/message/156334 Mute This Topic: https://lists.openembedded.org/mt/85839631/3617728 Group Owner: openembedded-core+owner@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [zboszor@pr.hu] -=-=-=-=-=-=-=-=-=-=-=-