Re: [q] make modules_install as non-root?

From: Keith Owens
Date: Thu Dec 01 2005 - 22:12:42 EST


On Fri, 2 Dec 2005 10:23:49 +0800,
Coywolf Qi Hunt <coywolf@xxxxxxxxx> wrote:
>Hello people,
>
>I wrote my own installkernel so I can do `make install' as non-root
>with the help of sudo. But how can we get to do `make modules_install'
>as non-root with sudo as well?
>
>The works of modules_install seem scattered over several places. Is
>it a nice idea to factor out an *installmodules* script for `make
>modules_install' to invoke?
>
>ps:
>Linus recommend us to build as non-root and install as root.
>I ask if we should install as non-root too.

make INSTALL_MOD_PATH=<somewhere> modules_install

Then use sudo to move from <somewhere>/lib/modules/<version> to /lib/modules/<version>.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/