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

Re: make-kpkg: permission denied making modules_image

On Fri, 27 Jun 2003 18:50:13 +0200, martin f krafft <madduck@debian.org> said: 

> I just configured, then made the kernel_image for a custom 2.4.21
> kernel with a couple of patches:

>   make-kpkg --append-to-version
>   -diamond-grsec-1.9.10+freeswan-ext-1.99+preempt-20030617-2
>   --revision 20030627.1726 --rootcmd fakeroot --config oldconfig
>   --added-patches grsecurity-2-4,freeswan,preempt configure

>   make-kpkg --append-to-version
>   -diamond-grsec-1.9.10+freeswan-ext-1.99+preempt-20030617-2
>   --rootcmd fakeroot kernel-image kernel-headers

> these worked quite nicely.


> Then I tried to compile a module for that kernel:

>   make-kpkg --append-to-version
>   -diamond-grsec-1.9.10+freeswan-ext-1.99+preempt-20030617-2
>   --rootcmd fakeroot --added-modules nvidia modules_image

> This fails:

>   if [ -f /usr/src/modules/nvidia/debian/control.template ]; then \
>     cp -a /usr/src/modules/nvidia/debian/control.template
>       /usr/src/modules/nvidia/debian/control; \
>   fi cp: cannot create regular file
>   `/usr/src/modules/nvidia/debian/control': Permission denied

> which makes perfect sense, because

>   diamond:...new/src/linux-2.4.21> id
>   uid=1000(madduck) gid=100(users) ...

> I consider this a bug, but I can't imagine that this bug exists
> because make-kpkg has existed for ages, and this is, after all,
> Debian.

> 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?


	What is MODULE_LOC set to? 

snafu = Situation Normal All F%$*ed up
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: