[Bug 290346] 15.0 BETA1/BETA2 ufs VM-IMAGES missing /etc/passwd file

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 18 Oct 2025 13:26:00 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=290346

            Bug ID: 290346
           Summary: 15.0 BETA1/BETA2 ufs VM-IMAGES missing /etc/passwd
                    file
           Product: Base System
           Version: 15.0-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: conf
          Assignee: bugs@FreeBSD.org
          Reporter: dhorn2000@gmail.com

Looking at some of the VM-IMAGES file downloads from 15.0 BETA1/BETA2, there is
a missing `/etc/passwd` file from the ufs filesystems (have not audited ZFS
images at this time).   I will update this bug report if I find evidence of
other specifics.

e.g.

* https://download.freebsd.org/releases/VM-IMAGES/15.0-BETA2/amd64/Latest/
* https://download.freebsd.org/releases/VM-IMAGES/15.0-BETA2/riscv64/Latest/

Verified this issue exists in at least riscv64 and amd64 with both raw ufs and
qcow2 ufs images.  (I suspect others are also impacted)  Also verified that
this file does properly exist in the 14.3-RELEASE images (not generated
automatically on first boot, but in the ufs image by default)

Temporary workaround is to do initial boot as single user from loader, mount
the root filesystem as RW `mount -rw /`, then do a `pwd_mkdb -p
/etc/master/passwd` since `/etc/master.password` does exist.

First boot symptoms include:

1) Not being able to login to any account on the console
2) error messages like (and more)
 * `no such user: _dhcp, falling back to "nobody"`
 * `Updating motd:install: unknown user root`

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