Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 7 Sep 2001 11:36:30 -0700 (PDT)
From:      David Wolfskill <david@catwhisker.org>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   bin/30420: "make install" for stallion tries to write to /usr/src
Message-ID:  <200109071836.f87IaUZ18556@freefall.freebsd.org>

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

>Number:         30420
>Category:       bin
>Synopsis:       "make install" for stallion tries to write to /usr/src
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Sep 07 11:40:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     David Wolfskill
>Release:        4.4-RC
>Organization:
>Environment:
FreeBSD dhcp-140.catwhisker.org 4.4-RC FreeBSD 4.4-RC #143: Fri Sep  7 07:03:41 PDT 2001     root@dhcp-140.catwhisker.org:/common/S2/obj/usr/src/sys/LAPTOP_30W  i386
>Description:
Using the above machine as source./NFS server, a colleague was doing an
NFS-based install.  During the "make installworld" phase, he started
getting "permission denied" messages for installing into /usr/libdata/stallion.

Examination shows that usr.sbin/stallion/bootcode/Makefile is apparently
trying to do uudecode and gzip operations in place.  Since /usr/src is
exported read-only, that poses a challenge or two.  :-}
>How-To-Repeat:
On a machine with recent sources, do the usual source upgrade (per
UPDATING) -- "make buildworld", "make buildkernel", "make installkernel", "make installworld", "mergemaster" (with a re-boot to
single-user mode after the installkernel if necessary or (otherwise) desired).  Verify that the resulting system  boots & runs.

NFS-export /usr/src and /usr/obj (read-only).

On a suitable victi^Wclient machine, mount the server's /usr/src and
/usr/obj appropriately, ensure that /etc/make.conf is compatible with
the one on the server, then "make installkernel" and "make installworld".

That last step should fail, whining about "permission denied" errors in usr.sbin/stallion/bootcode.
>Fix:
As a circumvention, it can (in some cases) suffice to mount /usr/src read-write.  Alternatively, copy /usr/src from the server to the client.

I suspect that the Makefile(s?) will need to be made a bit cleverer,
probably involving another level of indirection.
>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




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