Building base source

Ed Maste emaste at freebsd.org
Sun Jun 18 22:32:44 UTC 2017


On 11 June 2017 at 02:10, Polytropon <freebsd at edvax.de> wrote:
>
> That is a precise answer, thank you. It illustrates very well
> the difference between the security concepts implemented in
> FreeBSD vs. in Linux. The install* targets require root access
> (because that's what they do: they install stuff to the location
> given in DESTDIR, and doing "root only stuff" belongs to that
> task). It seems to be impossible to run the install* targets
> as a non-root user (except you modify the parts that require
> root permissions manually).

In fact you can run the install targets without root, with something like:

make -DNO_ROOT DESTDIR=/some/path \
  installworld installkernel distribution

but the installed files won't be directly usable, because none of the
"root only" tasks will have been performed. The -DNO_ROOT installation
will create a METALOG file in the destdir which can be used with
makefs to create a filesystem image.


More information about the freebsd-questions mailing list