OpenVZ Forum


Home » General » Support » Cant patch vanilla 2.6.22.6 with OVZ
Cant patch vanilla 2.6.22.6 with OVZ [message #20487] Tue, 18 September 2007 19:53 Go to next message
pyaya is currently offline  pyaya
Messages: 3
Registered: September 2007
Junior Member
Hi

I have a clean install of Ubuntu Feisty which is (unfortunately) version 2.6.20 of the kernel. I downloaded the 2.6.22.6 kernel source, unpacked it to /usr/src/, downloaded the patch-ovz003.2-combined.gz patch, and, based on the notes on the Debian Wiki page here, tried to run (from /usr/src/linux-2.6.22.6)
sudo gzip -dc /home/patrick/Desktop/patch-ovz003.2-combined.gz | patch -p1

I get
patching file COPYING.SWsoft
patch: **** Can't rename file /tmp/po4AI3EK to COPYING.SWsoft : Permission denied

Not sure what this is about? Is the patch the correct one to use? Maybe some other patch option to apply?

Sorry, am a newbie to all this. Theoretically I could try the .18 kernel, but as I am trying to get this all to work on a new Mac, I am trying to stick with a kernel which appears to run most of what I need as far as the hardware is concerned.

Thanks
Patrick
Re: Cant patch vanilla 2.6.22.6 with OVZ [message #20490 is a reply to message #20487] Tue, 18 September 2007 21:48 Go to previous messageGo to next message
curx
Messages: 739
Registered: February 2006
Location: Nürnberg, Germany
Senior Member

Hi,

have you (as user) the permission to create files in the directory /usr/src/?

[Updated on: Tue, 18 September 2007 21:49]

Report message to a moderator

Re: Cant patch vanilla 2.6.22.6 with OVZ [message #20491 is a reply to message #20490] Wed, 19 September 2007 05:08 Go to previous messageGo to next message
pyaya is currently offline  pyaya
Messages: 3
Registered: September 2007
Junior Member
I am using sudo for the gzip/patch command, and could unpack the linux source, create a symlink, etc. As sudo I was also able to write in the /tmp directory. It's still possible that's an issue, from what I understand sudo can be restricted in various ways on setup, though I would suspect that the default install, for the default sudo, would essentially give you root privileges.

Hmm.

Thanks
Patrick
Re: Cant patch vanilla 2.6.22.6 with OVZ [message #20496 is a reply to message #20491] Wed, 19 September 2007 06:51 Go to previous messageGo to next message
curx
Messages: 739
Registered: February 2006
Location: Nürnberg, Germany
Senior Member

Hi,

> [...]
> $ sudo gzip -dc /home/patrick/Desktop/patch-ovz003.2-combined.gz | patch -p1
You unpack the patch files as user root, and patch it as normal user.
Execute the patch command with sudo.

Re: Cant patch vanilla 2.6.22.6 with OVZ [message #20498 is a reply to message #20496] Wed, 19 September 2007 07:33 Go to previous message
pyaya is currently offline  pyaya
Messages: 3
Registered: September 2007
Junior Member
Quote:

You unpack the patch files as user root, and patch it as normal user.
Execute the patch command with sudo.


Ah! I thought sudo applied to the whole line. Thanks! I'll try this tonight when I'm back at the machine.

Cheers
Patrick
Previous Topic: kernel source for ethernet driver
Next Topic: deriving a configuration from the example configs
Goto Forum:
  


Current Time: Sat Sep 06 16:12:06 GMT 2025

Total time taken to generate the page: 0.29953 seconds