freebsd / crochet

Build FreeBSD images for RaspberryPi, BeagleBone, PandaBoard, and others.
BSD 2-Clause "Simplified" License
608 stars 187 forks source link

Installworld failed:ERROR: Required ntpd user is missing #269

Closed zqb-all closed 5 years ago

zqb-all commented 5 years ago

I try to build img for pine64. then fail when installworld.

$ cat /usr/crochet/work/_.installworld.aarch64.log
make[1]: "/usr/crochet/work/obj/usr/src/arm64.aarch64/toolchain-metadata.mk" line 1: Using cached toolchain metadata from build at freebsd on Thu Nov  8 11:24:53 UTC 2018
ERROR: Required ntpd user is missing, see /usr/src/UPDATING.
*** Error code 1

Stop.
make[1]: stopped in /usr/src
*** Error code 1

Stop.
make: stopped in /usr/src
kozross commented 5 years ago

Getting this too, no matter whether I set the ntpd option or not. Even forcing the creation of an ntpd user doesn't help.

zqb-all commented 5 years ago

This issue occur when build in "freebsd 11.02". Finally I use "freebsd 12.0-BETA3 amd64" in my virtualbox to build and everything is ok.

kozross commented 5 years ago

@zqb-all I'm working in a qemu image, and FreeBSDs later than 11.2 won't even boot.

iseus commented 5 years ago

It checks the ntpd user on the host, not on the target. For a quick workaround I added ntpd user and group (123:123) just to have it working.

tldrm commented 5 years ago

Getting this error now. Raspberry Pi, FreeBSD 12.0-RELEASE. The ntpd user and group are present in the building host. src is borrowed from my poudriere jail created just today (poudriere jail -c -j FreeBSD:12:amd64 -v 12.0-RELEASE -a amd64). My crochet is also from today (master, zip).

reezer commented 5 years ago

I experience the same problem as @tldrm Maybe this bug should be reopened.

przzzp commented 5 years ago

After adding the user ntdp, you must update the password database:

pwd_mkdb /etc/master.passwd

Result:

id -u ntpd

123

iseus commented 5 years ago

This is still not a crochet issue. In the other hand, use pw to create groups and users, it will do the background work for you.

przzzp commented 5 years ago

The fact is that when upgrading from version 11 to version 12, the system adds entries to the /etc/passwd and /etc/group files, but does not update the database.

aboiko-glx commented 5 years ago

@przzzp @iseus, thanks for the input, guys. However, pwd_mkdb /etc/master.passwd didn't help me (did not update my /etc/master.passwd even after touching my /etc/passwd). Adding a dummy user (via adduser) did the trick and allowed me to proceed with my building process. Thanks again!

iseus commented 5 years ago

The fact is that when upgrading from version 11 to version 12, the system adds entries to the /etc/passwd and /etc/group files, but does not update the database.

Thanks, I didn't noticed this yet. I'm still using 11.1 on my build host.

Ofloo commented 5 years ago

FreeBSD 12.0-RELEASE-p2 r343486

/usr/src # make -j9 installworld --- installworld --- make[1]: "/usr/obj/usr/src/amd64.amd64/toolchain-metadata.mk" line 1: Using cached toolchain metadata from build at azkaban.ofloo.net on Sun Jan 27 13:17:21 CET 2019 --- installcheck_UGID --- --- installcheck_sh_check --- --- installcheck_UGID --- ERROR: Required ntpd user is missing, see /usr/src/UPDATING. *** [installcheck_UGID] Error code 1

make[1]: stopped in /usr/src 1 error

make[1]: stopped in /usr/src *** [installworld] Error code 2

make: stopped in /usr/src 1 error

make: stopped in /usr/src