misc/140376: installworld fails trying to use 'chflags schg' on NFS DESTDIR

Greg A. Woods woods-freebsd.org at planix.ca
Sun Nov 8 00:40:02 UTC 2009


>Number:         140376
>Category:       misc
>Synopsis:       installworld fails trying to use 'chflags schg' on NFS DESTDIR
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Nov 08 00:40:01 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Greg A. Woods
>Release:        FreeBSD/mips
>Organization:
Planix, Inc.
>Environment:
>Description:
I'm building the FreeBSD/mips project using a (virtual) machine running
FreeBSD-8.0-RC2 with source, obj, and destdir NFS mounted (from a NetBSD
server).

During the "installworld" phase, being run as root (sigh, why must I do
any of the build as root?), I encounter the following error:

install -s -o root -g wheel -m 4555   chpass /once/rest/work/freebsd-mips//usr/bin
/once/rest/work/freebsd-mips//usr/bin/chfn -> /once/rest/work/freebsd-mips//usr/bin/chpass
/once/rest/work/freebsd-mips//usr/bin/chsh -> /once/rest/work/freebsd-mips//usr/bin/chpass
chflags schg /once/rest/work/freebsd-mips//usr/bin/chpass
chflags: /once/rest/work/freebsd-mips//usr/bin/chpass: Operation not supported
*** Error code 1

Stop in /once/rest/work/woods/m-FreeBSD-mips/usr.bin/chpass.

>How-To-Repeat:
run installworld to an NFS-mounted DESTDIR?

>Fix:
Don't ever run any of the build or install as root.
(at least not when building install media, or doing
cross-compile builds, etc.)

Do chflags operations during final install only!


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list