[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: make-kpkg: permission denied making modules_image



On Tue, 1 Jul 2003 18:25:15 -0400, Kevin McKinley <ronin2@bellatlantic.net> said: 

> On Tue, 01 Jul 2003 11:43:01 -0500
> Manoj Srivastava <srivasta@debian.org> wrote:

>> > So I am wondering: what am I doing wrong? I *should* be able to
>> > compile modules for an existing kernel tree without write privs
>> > to /usr/src/modules/..., right?
>>
>>
>> Right.
>>
>> What is MODULE_LOC set to?
>>
>> manoj

>> looks around the table, can't figure out who the chump is>

> I guess it's me. :)

> I have, using kernel-package, successfully compiled modules for an
> existing kernel, from sources in /usr/src/modules. I didn't set any
> special variables, I just used fakeroot and make-kpkg.

> I don't see how one could possibly compile modules without write
> privileges to /usr/src/modules.

> Maybe I'm just doing a depleted uranium imitation today.

	Try this:
% sudo echo 'MODULE_LOC=/usr/local/src/kernel/modules' >> /etc/kernel-pkg.conf
% sudo echo 'debian := 5:501c' >> /etc/kernel-pkg.conf
% sudo mkdir -p /usr/local/src/kernel/modules
% sudo chown -R $(id -n -u) /usr/local/src/kernel/
% sudo aptitude install cryptoapi-core cryptoloop # for example

	Now, we no longer need to be root

% cd /usr/local/src/kernel/
% wget ftp://ftp.us.kernel.org/pub/linux/kernel/v2.4/linux-2.4.21.tar.bz2
% tar zvvfx /usr/src/cryptoapi-core.tar.gz
% tar zvvfx /usr/src/cryptoloop.tar.gz
% tar jvvfx linux-2.4.21.tar.bz2
% mkdir 2.4.21
% cd 2.4.21
% lndir ../linux-2.4.21
% cp /boot/config-2.4.20 .config
% make-kpkg --rootcmd fakeroot --append-to-version -cryptoloop kernel_image
% fakeroot make-kpkg --append-to-version -cryptoloop modules_image

	manoj

-- 
"Mars is essentially in the same orbit... Mars is somewhat the same
distance from the Sun, which is very important. We have seen pictures
where there are canals, we believe, and water. If there is water, that
means there is oxygen. If oxygen, that means we can breathe." Vice
President Dan Quayle, 8/11/89
Manoj Srivastava   <srivasta@debian.org>  <http://www.debian.org/%7Esrivasta/>
1024R/C7261095 print CB D9 F4 12 68 07 E4 05  CC 2D 27 12 1D F5 E8 6E
1024D/BF24424C print 4966 F272 D093 B493 410B  924B 21BA DABB BF24 424C



Reply to: