Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 8 Nov 2009 00:31:44 GMT
From:      "Greg A. Woods" <woods-freebsd.org@planix.ca>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   misc/140376: installworld fails trying to use 'chflags schg' on NFS DESTDIR
Message-ID:  <200911080031.nA80VhNC084099@www.freebsd.org>
Resent-Message-ID: <200911080040.nA80e13K025349@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200911080031.nA80VhNC084099>