WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] How to stop yum update on CentOS 5.1 to modify grub

To: Rudi Ahlers <Rudi@xxxxxxxxxxx>
Subject: Re: [Xen-users] How to stop yum update on CentOS 5.1 to modify grub
From: Bas Mevissen <abuse@xxxxxxxxxxxxxx>
Date: Mon, 07 Apr 2008 16:00:00 +0200
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Mon, 07 Apr 2008 07:00:44 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <47FA179C.4050509@xxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <47F8DBFC.4040805@xxxxxxxxxxx> <47FA09A6.4050203@xxxxxxxxxx> <47FA179C.4050509@xxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.12 (Windows/20080213)
Rudi Ahlers wrote:

You can change it by modifying the file /etc/sysconfig/kernel:

# UPDATEDEFAULT specifies if new-kernel-pkg should make
# new kernels the default
UPDATEDEFAULT=yes

# DEFAULTKERNEL specifies the default kernel package type
DEFAULTKERNEL=kernel-xen

Make sure that your default kernel is "kernel-xen" and not "kernel" obviously.

Regards,

Bas.

Cool, thank you. Does the kernel version affect this, or get affected by this at all?

When a new kernel is installed, the post install script touched the file to change old "kernel-smp" references to "kernel". Script should only update after a check on kernel-smp IMHO.

But if you have both xen-enabled and non-xen kernels installed, they both get updated when a new kernel of either type is available.

The /etc/sysconfig/kernel file only determines whether the newly installed kernel becomes the default. I personally don't see why there are two switched needed for that. Guess it is for historical reasons.

Regards,

Bas.

(please keep the list posted)



_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users