From owner-freebsd-current@FreeBSD.ORG Fri Jan 21 16:00:50 2005 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 66D4D16A4CE for ; Fri, 21 Jan 2005 16:00:50 +0000 (GMT) Received: from mailserv1.neuroflux.com (ns2.neuroflux.com [204.228.228.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1495C43D4C for ; Fri, 21 Jan 2005 16:00:50 +0000 (GMT) (envelope-from ryans@gamersimpact.com) Received: (qmail 37152 invoked by uid 89); 21 Jan 2005 15:59:35 -0000 Received: from unknown (HELO www2.neuroflux.com) (127.0.0.1) by localhost with SMTP; 21 Jan 2005 15:59:35 -0000 Received: from 208.4.77.66 (SquirrelMail authenticated user ryans@gamersimpact.com); by www2.neuroflux.com with HTTP; Fri, 21 Jan 2005 08:59:35 -0700 (MST) Message-ID: <50158.208.4.77.66.1106323175.squirrel@208.4.77.66> In-Reply-To: <20050121151747.GA36660@obiwan.tataz.chchile.org> References: <20050121151747.GA36660@obiwan.tataz.chchile.org> Date: Fri, 21 Jan 2005 08:59:35 -0700 (MST) From: "Ryan Sommers" To: "Jeremie Le Hen" User-Agent: SquirrelMail/1.4.3a X-Mailer: SquirrelMail/1.4.3a MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal cc: freebsd-current@freebsd.org Subject: Re: Cannot install kernel as user X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Jan 2005 16:00:50 -0000 Jeremie Le Hen said: > Hi, > > my laptop is a very slow beast but this is the only computer I can > actually run -CURRENT on. In order to parallelize task, when my laptop > is fsck'ing after a panic, I use a collegue's computer on which I have > a shell to build the new kernel. Everything works quite well, except > that when I install the kernel, install(8) will stop on chown(2) : > > %%% > propane:Z6PO$ make KERNEL=kernel.test DESTDIR=$HOME/export install > [...] > mkdir -p /home/tataz/export/boot/kernel.test > install -p -m 555 -o root -g wheel kernel > /home/tataz/export/boot/kernel.test > install: /home/tataz/export/boot/kernel.test/kernel: chown/chgrp: > Operation not permitted > *** Error code 71 > > Stop in /usr/home/tataz/FreeBSD/CURRENT/src/sys/i386/compile/Z6PO. > %%% > > I thought about adding a flag such as NO_INSTALLCHOWN in both > kern.post.mk and kmod.mk. What do you think of the idea ? > > I saw there are KMODOWN and KMODGRP in kmod.mk, but it seems there is > no similar facility in kern.post.mk. Maybe it would be worth having > KERNOWN and KERNGRP as well. > > I can submit a patch if asked. I'm trying to think where this would be useful outside your particular situation. I'm not sure there is a lot of use. The official way to do what you are looking to do is to mount it the other way. On the build machine export the src/obj directories and mount them on the target machine. Then execute your make install from the target machine. Otherwise you run into problems like you are running into. Especially if you're running an install as a non-root user. -- Ryan Sommers ryans@gamersimpact.com