misc/178284: make installworld doesn't detect UID correctly and fails due to not having enough permissions

Brooks Davis brooks at FreeBSD.org
Wed May 1 22:10:01 UTC 2013


The following reply was made to PR misc/178284; it has been noted by GNATS.

From: Brooks Davis <brooks at FreeBSD.org>
To: "Wojciech A. Koszek" <wkoszek at FreeBSD.org>
Cc: freebsd-gnats-submit at FreeBSD.org
Subject: Re: misc/178284: make installworld doesn't detect UID correctly and
 fails due to not having enough permissions
Date: Wed, 1 May 2013 17:03:27 -0500

 On Wed, May 01, 2013 at 06:51:59PM +0000, Wojciech A. Koszek wrote:
 > >Description:
 > make installworld will fail if you do it as non-root user.
 >
 > I think "make installworld" should warn user about running with non-root UID, and maybe ask for a "Press Y to continue", and should let me install the world correctly, without failing on "permission denied".
 > 
 > In the perfect case, such installation would create a script e.g.: perms.sh in $DESTDIR/, so that once booted, I could just do sh /perms.sh and have everything be fixed.
 
 Other than not being automatic, the NO_ROOT option introduced in HEAD
 in January will accomplish all of this (you set permissions with mtree
 instead of a script, but that's just a detail).  I hope to merge it to 9
 in the next week.  Virtually all the supporting commits are now
 complete.
 
 -- Brooks


More information about the freebsd-bugs mailing list