You are not logged in.

#1 2006-05-08 07:49:26

jacopastorius
Member
From: Italy
Registered: 2006-05-01
Posts: 134

upgrading kernel and avoid overwrite

i upgraded my kernel together with other packages few minutes ago with pacman -Syu. I believed that my old kernel won't overwrited, so, after configuring grub, i was able to select between the new kernel and the old kernel (like i do with debian). But in /boot/grub there is only a kernel image and it is of the new kernel tough, because at reboot i had to reinstall nvidia driviers to build module for the new kernel. There is a way to avoid the overwrite of the old kernel when upgrading?

Offline

#2 2006-05-08 08:32:10

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: upgrading kernel and avoid overwrite

Like most things in Arch, this is not done for you. By default, the existing kernel package is overwritten on upgrade, just like any other package.

If you want to keep the old one, you would need to backup the files first e.g. vmlinuz26 to vmlinuz26.old, and add an appropriate entry in your grub/lilo config.

Offline

#3 2006-05-08 09:02:05

jacopastorius
Member
From: Italy
Registered: 2006-05-01
Posts: 134

Re: upgrading kernel and avoid overwrite

tomk wrote:

Like most things in Arch, this is not done for you. By default, the existing kernel package is overwritten on upgrade, just like any other package.

If you want to keep the old one, you would need to backup the files first e.g. vmlinuz26 to vmlinuz26.old, and add an appropriate entry in your grub/lilo config.

ok, thanks!

Offline

#4 2006-05-08 12:10:11

sebcactus
Member
From: Germany
Registered: 2005-01-27
Posts: 277

Re: upgrading kernel and avoid overwrite

I think if you use:

NoUpgrade = /boot/vmlinuz26

in /etc/pacman.conf, your new updated kernel is extracted as /boot/vmlinuz26.pacnew

Offline

#5 2006-05-08 12:12:58

jacopastorius
Member
From: Italy
Registered: 2006-05-01
Posts: 134

Re: upgrading kernel and avoid overwrite

marmotte wrote:

I think if you use:

NoUpgrade = /boot/vmlinuz26

in /etc/pacman.conf, your new updated kernel is extracted as /boot/vmlinuz26.pacnew

thanks, i'll try it

Offline

#6 2006-05-08 12:26:04

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: upgrading kernel and avoid overwrite

not a good idea, as the modules for old kernel will still be overwritten with the ones for the new one, potentially leaving you with an unbootable system.

Offline

#7 2006-05-08 20:17:20

hypermegachi
Member
Registered: 2004-07-25
Posts: 311

Re: upgrading kernel and avoid overwrite

i had a thread a couple weeks back about why there's only one kernel...
http://bbs.archlinux.org/viewtopic.php? … highlight=

basically, don't upgrade the kernel until you can manually check things still work properly after an upgrade

Offline

Board footer

Powered by FluxBB