Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sysusers.sh: Create /etc/login.defs if missing
useradd needs both /etc/group and /etc/login.defs to work. It does chroot into a new system and then looks for these files. While this is technically correct it is a bit inconvenient for RPM. Creating etc/login.defs as an empty file make this work but still runs useradd without proper configuration until the shadow-utils package gets installed. There isn't really anything RPM can do about that and distribution need to ahndle the situation to make installations to an empty directory with rpm --roo work. Resolves: rpm-software-management#3186
- Loading branch information