[Rpm-maint] [rpm-software-management/rpm] sysusers.sh fails in empty chroot (Issue #3186)

Panu Matilainen notifications at github.com
Wed Jun 26 11:24:21 UTC 2024


**Describe the bug**

sysusers.sh fails when installing to an empty chroot

**To Reproduce**
Steps to reproduce the behavior on Fedora >= 39:
1. mkdir -p /srv/f41 && cd /srv/f41
2. dnf --disablerepo="*" --enablerepo="rawhide" --installroot=/srv/test download --resolve httpd
3. make sure %__systemd_sysusers is set to the rpm sysusers.sh script
4. rpm -Uv --root /srv/test --noscripts --noplugins *.rpm

**Expected behavior**
Some errors expected due to --noscripts, but users and groups should get created in the chroot.

**Output**

> Verifying packages...
Preparing packages...
libgcc-14.1.1-6.fc41.x86_64
pcre2-syntax-10.43-2.fc41.1.noarch
ncurses-base-6.4-12.20240127.fc40.noarch
mailcap-2.1.54-5.fc40.noarch
fedora-release-identity-basic-41-0.14.noarch
fedora-repos-rawhide-41-0.2.noarch
fedora-gpg-keys-41-0.2.noarch
fedora-repos-41-0.2.noarch
fedora-release-common-41-0.14.noarch
fedora-release-41-0.14.noarch
groupadd: failure while writing changes to /etc/group
groupadd: failure while writing changes to /etc/group
groupadd: failure while writing changes to /etc/group
groupadd: failure while writing changes to /etc/group
groupadd: failure while writing changes to /etc/group
groupadd: failure while writing changes to /etc/group
groupadd: failure while writing changes to /etc/group
groupadd: failure while writing changes to /etc/group
groupadd: failure while writing changes to /etc/group
groupadd: failure while writing changes to /etc/group
groupadd: failure while writing changes to /etc/group
groupadd: failure while writing changes to /etc/group
groupadd: failure while writing changes to /etc/group
groupadd: failure while writing changes to /etc/group
groupadd: failure while writing changes to /etc/group
groupadd: failure while writing changes to /etc/group
groupadd: failure while writing changes to /etc/group
groupadd: failure while writing changes to /etc/group
groupadd: failure while writing changes to /etc/group
groupadd: failure while writing changes to /etc/group
groupadd: failure while writing changes to /etc/group
groupadd: failure while writing changes to /etc/group
groupadd: failure while writing changes to /etc/group
groupadd: failure while writing changes to /etc/group
groupadd: failure while writing changes to /etc/group
groupadd: failure while writing changes to /etc/group
groupadd: failure while writing changes to /etc/group
groupadd: failure while writing changes to /etc/group
groupadd: failure while writing changes to /etc/group
useradd: group '4' does not exist
useradd: group '1' does not exist
useradd: group '2' does not exist
useradd: group '50' does not exist
useradd: group '100' does not exist
useradd: group '0' does not exist
useradd: group '7' does not exist
useradd: group '12' does not exist
useradd: group '65534' does not exist
useradd: group '0' does not exist
useradd: group '0' does not exist
useradd: group '0' does not exist
useradd: group '0' does not exist
setup-2.15.0-4.fc41.noarch
[...]


**Environment**
 - OS / Distribution: Fedora >= 39
 - Version: rpm >= 4.19

**Additional context**
Add any other context about the problem here.


-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/3186
You are receiving this because you are subscribed to this thread.

Message ID: <rpm-software-management/rpm/issues/3186 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20240626/b9cfed66/attachment-0001.html>


More information about the Rpm-maint mailing list