Subject: bin/33822: etcupdate needs to update /etc/?pwd.db before running mtree
To: None <gnats-admin@netbsd.org, netbsd-bugs@netbsd.org>
From: Hauke Fath <hauke@Espresso.Rhein-Neckar.DE>
List: netbsd-bugs
Date: 06/25/2006 12:40:00
>Number: 33822
>Category: bin
>Synopsis: etcupdate needs to update /etc/?pwd.db before running mtree
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: bin-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Jun 25 12:40:00 +0000 2006
>Originator: Hauke Fath <hauke@Espresso.Rhein-Neckar.DE>
>Release: NetBSD 3.99.21
>Organization:
Falling Raindrops
>Environment:
System: NetBSD pizza.causeuse.org 3.99.21 NetBSD 3.99.21 (PIZZA) #0: Thu Jun 22 19:25:34 CEST 2006 hf@Gstoder.nt.e-technik.tu-darmstadt.de:/var/obj/netbsd-builds/current/sparc/sys/arch/sparc/compile/PIZZA sparc
Architecture: sparc
Machine: sparc
>Description:
When you run etcupdate(8) after updating the system from
e.g. netbsd-3 to current, it offers to run mtree because of
newly-created directories. Unfortunately, that fails
Remove /tmp/temproot? (y/[n])
*** Keeping /tmp/temproot
You have created new directories. Run mtree to set permissions? (y/[n]) y
mtree: unknown user `_rwhod'
mtree: failed at line 1084 of the specification
because after adding the new user _rwhod, the /etc/{,s}pwd.db
databases have not yet been updated.
>How-To-Repeat:
Update a release installation to -current, then run etcupdate.
>Fix:
Move the mtree run behind the update of /etc/{,s}pwd.db.
>Unformatted: