[Bug 231334] 12-ALPHA's make installworld DESTDIR=/mnt/current fails due to improper ntpd user check of /etc/passwd file

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Sep 14 02:15:15 UTC 2018


--- Comment #3 from ota at j.email.ne.jp ---
(In reply to Ian Lepore from comment #1)

For "make installworld DESTDIR=/mnt/current" case,
"mergemaster -Fp -D /mnt/current" needs to be run instead of "mergemaster -Fp"

The problem is /usr/src/Makefile,

.for uid in ${CHECK_UIDS}
        @if ! `id -u ${uid} >/dev/null 2>&1`; then \
                echo "ERROR: Required ${uid} user is missing, see
ING."; \
                false; \

This checks if a user exists on the host server and "not on the destination of

$ uname -r

$ id -u ntpd
id: ntpd: no such user

$ svn info /usr/src
Path: /usr/src
Working Copy Root Path: /usr/src
URL: https://svn0.us-east.freebsd.org/base/head
Relative URL: ^/head
Repository Root: https://svn0.us-east.freebsd.org/base
Repository UUID: ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Revision: 338677
Node Kind: directory
Schedule: normal
Last Changed Author: mmacy
Last Changed Rev: 338677
Last Changed Date: 2018-09-13 21:30:05 -0400 (Thu, 13 Sep 2018)

$ grep ntpd /mnt/current/etc/passwd
ntpd:*:123:123:NTP Daemon:/var/db/ntp:/usr/sbin/nologin

$ make installworld -C /usr/src DESTDIR=/mnt/current
ERROR: Required ntpd user is missing, see /usr/src/UPDATING.

Perhaps, this needs to be like

.for uid in ${CHECK_UIDS}
        @if `awk -F: '"${uid}" == $$1{rc=1}END{exit rc}'
${DESTDIR}/etc/passwd`; then \
                echo "ERROR: Required ${uid} user is missing, see
ING."; \
                false; \

I'm not sure for NIS based cases...

You are receiving this mail because:
You are the assignee for the bug.

More information about the freebsd-bugs mailing list