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

Re: Trouble compiling generic kernel



On Mon, Jul 26, 2010 at 2:32 AM, Curt Howland <Howland@priss.com> wrote:
> Well, I've run into another problem with the compile that folks might
> find interesting.
>
> All while running as the only user account on this machine (other than
> root), I ran into a very interesting permissions error at the end of
> the "make-kpkg kernel_image" process. I did the compile as root
> successfully after seeing this error the first time, just to see if it
> was user related, and the compile completed successfully.
>
> In fact, I'm running 2.6.35-rc6 right now, no problems.
>
> But I erased the directory and un-tarred the generic kernel source
> again just to be sure, and received the same permission error again.
> I'm just not sure if this is a debian "make-kpkg" error or not...
>
> Here's the error and ls -a of the directories I think its referring to:
>
> =================
> echo done > debian/stamp/build/kernel
> /usr/bin/make -f ./debian/rules
> debian/stamp/binary/pre-linux-image-2.6.35-rc6-curt.02
> make[1]: Entering directory `/usr/src/linux-2.6.35-rc6'
> ====== making target
> debian/stamp/install/linux-image-2.6.35-rc6-curt.02 [new prereqs:
> ]======
> This is kernel package version 12.036.
> rm -f -r .//usr/src/linux-2.6.35-rc6/debian/linux-image-2.6.35-rc6-curt.02
> .//usr/src/linux-2.6.35-rc6/debian/linux-image-2.6.35-rc6-curt.02.deb
> install -p -d -o root -g root  -m  755
> /usr/src/linux-2.6.35-rc6/debian/linux-image-2.6.35-rc6-curt.02/etc/kernel/postinst.d
> /usr/src/linux-2.6.35-rc6/debian/linux-image-2.6.35-rc6-curt.02/etc/kernel/preinst.d
> \
>
> /usr/src/linux-2.6.35-rc6/debian/linux-image-2.6.35-rc6-curt.02/etc/kernel/postrm.d
> /usr/src/linux-2.6.35-rc6/debian/linux-image-2.6.35-rc6-curt.02/etc/kernel/prerm.d
> install: cannot change owner and permissions of
> `/usr/src/linux-2.6.35-rc6/debian/linux-image-2.6.35-rc6-curt.02/etc/kernel/postinst.d':
> Operation not permitted
> install: cannot change owner and permissions of
> `/usr/src/linux-2.6.35-rc6/debian/linux-image-2.6.35-rc6-curt.02/etc/kernel/preinst.d':
> Operation not permitted
> install: cannot change owner and permissions of
> `/usr/src/linux-2.6.35-rc6/debian/linux-image-2.6.35-rc6-curt.02/etc/kernel/postrm.d':
> Operation not permitted
> install: cannot change owner and permissions of
> `/usr/src/linux-2.6.35-rc6/debian/linux-image-2.6.35-rc6-curt.02/etc/kernel/prerm.d':
> Operation not permitted
> make[1]: *** [debian/stamp/install/linux-image-2.6.35-rc6-curt.02] Error 1
> make[1]: Leaving directory `/usr/src/linux-2.6.35-rc6'
> make: *** [kernel_image] Error 2
>
> $ dir /usr/src/linux-2.6.35-rc6/debian/linux-image-2.6.35-rc6-curt.02/etc/kernel/
> total 16
> drwx------ 2 curt curt 4096 Jul 25 21:12 postinst.d
> drwx------ 2 curt curt 4096 Jul 25 21:12 postrm.d
> drwx------ 2 curt curt 4096 Jul 25 21:12 preinst.d
> drwx------ 2 curt curt 4096 Jul 25 21:12 prerm.d
>
> $ dir /usr/src/linux-2.6.35-rc6/debian/linux-image-2.6.35-rc6-curt.02/etc/
> total 4
> drwxr-xr-x 6 curt curt 4096 Jul 25 21:12 kernel
> =================

I had the same error when i was compiling the 2.6.34.1, both inside
and outside the /usr/src/ dir, and again worked fine when i did it as
root.

I don’t think a normal user can changer owner and permissions can they?

Regards, Angus

ps thinking about it, you would have had to untar or cp the source as
root in order to get it into the /usr/src folder right, if so wouldn’t
it end up belonging to root? (im still a bit new to how *nix
permissions work, so pardon my ignorance)


Reply to: