prepare-root.sh: run systemd-sysusers after rpm install

This commit is contained in:
Harald Hoyer 2018-11-02 18:17:37 +01:00
parent 449281016b
commit 89a4aa3771

View file

@ -310,6 +310,8 @@ export SOURCE_DATE_EPOCH=$(
chroot "$sysroot" bash -c 'rpm -qa --qf "%{BUILDTIME}\n"' | sort -nr | head -1 chroot "$sysroot" bash -c 'rpm -qa --qf "%{BUILDTIME}\n"' | sort -nr | head -1
) )
chroot "$sysroot" /usr/bin/systemd-sysusers
for i in passwd shadow group gshadow subuid subgid; do for i in passwd shadow group gshadow subuid subgid; do
[[ -e "$sysroot"/etc/${i}.rpmnew ]] || continue [[ -e "$sysroot"/etc/${i}.rpmnew ]] || continue
while read line || [[ $line ]]; do while read line || [[ $line ]]; do