FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > CentOS > CentOS

 
 
LinkBack Thread Tools
 
Old 07-17-2008, 08:56 AM
"Antti J. Huhtala"
 
Default Replacing custom kernel with another - with same identifier

to, 2008-07-17 kello 09:16 +0100, ne.. kirjoitti:
> On Thu, Jul 17, 2008 at 08:05, Antti J. Huhtala <ahuhtal4@welho.com> wrote:
> > Hi list,
> >
> > I just finished building a custom kernel from 2.6.18-53.1.21 source rpm
> > - this time with ISA bus and ISAPNP support which I accidentally left
> > out of my previous attempt.
> > Unfortunately, this time I forgot to change my identifier in
> > kernel-2.6.spec file. Thus I now have one *installed* kernel version
> > *without* ISA support, and another one *with* ISA support but as rpm,
> > not yet installed. Both kernels now have identical identifiers.
> >
> > What is the safe way to remove the previous installed kernel version
> > without taking out the uninstalled new version? Is the latter safe in
> > ~/rpmbuild/RPMS if I use 'rpm -e' to remove the former version?
> There is no need to remove the old kernel. Use the --replacefiles option to
> rpm when installing the new kernel. Then verify that your grub.conf/lilo.conf
> has the correct entry.
>
Ah, indeed. I've never used --replacefiles in installing kernels but
guess it works with them just as with any other files. Thanks!

Antti


_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 07-17-2008, 09:19 AM
"Antti J. Huhtala"
 
Default Replacing custom kernel with another - with same identifier

to, 2008-07-17 kello 09:16 +0100, ne.. kirjoitti:
> On Thu, Jul 17, 2008 at 08:05, Antti J. Huhtala <ahuhtal4@welho.com> wrote:
> >
> > What is the safe way to remove the previous installed kernel version
> > without taking out the uninstalled new version? Is the latter safe in
> > ~/rpmbuild/RPMS if I use 'rpm -e' to remove the former version?
> There is no need to remove the old kernel. Use the --replacefiles option to
> rpm when installing the new kernel. Then verify that your grub.conf/lilo.conf
> has the correct entry.
>
Well, it wasn't as simple as that. rpm says:"kernel ... is already
installed" and will not go on. The identifiers (file names) are
identical, remember?

Any other ideas?

Antti


_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 07-17-2008, 04:58 PM
ne...
 
Default Replacing custom kernel with another - with same identifier

On Thu, Jul 17, 2008 at 10:19, Antti J. Huhtala <ahuhtal4@welho.com> wrote:
> to, 2008-07-17 kello 09:16 +0100, ne.. kirjoitti:
>> On Thu, Jul 17, 2008 at 08:05, Antti J. Huhtala <ahuhtal4@welho.com> wrote:
>> >
>> > What is the safe way to remove the previous installed kernel version
>> > without taking out the uninstalled new version? Is the latter safe in
>> > ~/rpmbuild/RPMS if I use 'rpm -e' to remove the former version?
>> There is no need to remove the old kernel. Use the --replacefiles option to
>> rpm when installing the new kernel. Then verify that your grub.conf/lilo.conf
>> has the correct entry.
>>
> Well, it wasn't as simple as that. rpm says:"kernel ... is already
> installed" and will not go on. The identifiers (file names) are
> identical, remember?
Bummer, wrong option. From rpm --help
--replacepkgs reinstall if the package is already present

And what Mr Hughes wrote will also work.

--
Laurence J. Peter - "Originality is the fine art of remembering what
you hear but forgetting where you heard it."
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 07-17-2008, 05:11 PM
"Akemi Yagi"
 
Default Replacing custom kernel with another - with same identifier

On Thu, Jul 17, 2008 at 12:05 AM, Antti J. Huhtala <ahuhtal4@welho.com> wrote:
> Hi list,
>
> I just finished building a custom kernel from 2.6.18-53.1.21 source rpm
> - this time with ISA bus and ISAPNP support which I accidentally left
> out of my previous attempt.
> Unfortunately, this time I forgot to change my identifier in
> kernel-2.6.spec file. Thus I now have one *installed* kernel version
> *without* ISA support, and another one *with* ISA support but as rpm,
> not yet installed. Both kernels now have identical identifiers.
>
> What is the safe way to remove the previous installed kernel version
> without taking out the uninstalled new version? Is the latter safe in
> ~/rpmbuild/RPMS if I use 'rpm -e' to remove the former version?

Hi Antti,

I don't know if you have some reason and must stay at that old kernel,
but I advise you get the current 2.6.18-92.1.6 kernel and rebuild.
Then you'd have a chance to get your buildid in.

Akemi
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 07-17-2008, 06:57 PM
"Antti J. Huhtala"
 
Default Replacing custom kernel with another - with same identifier

to, 2008-07-17 kello 17:58 +0100, ne.. kirjoitti:
> On Thu, Jul 17, 2008 at 10:19, Antti J. Huhtala <ahuhtal4@welho.com> wrote:
> > to, 2008-07-17 kello 09:16 +0100, ne.. kirjoitti:
> >> On Thu, Jul 17, 2008 at 08:05, Antti J. Huhtala <ahuhtal4@welho.com> wrote:
> >> >
> >> > What is the safe way to remove the previous installed kernel version
> >> > without taking out the uninstalled new version? Is the latter safe in
> >> > ~/rpmbuild/RPMS if I use 'rpm -e' to remove the former version?
> >> There is no need to remove the old kernel. Use the --replacefiles option to
> >> rpm when installing the new kernel. Then verify that your grub.conf/lilo.conf
> >> has the correct entry.
> >>
> > Well, it wasn't as simple as that. rpm says:"kernel ... is already
> > installed" and will not go on. The identifiers (file names) are
> > identical, remember?
> Bummer, wrong option. From rpm --help
> --replacepkgs reinstall if the package is already present
>
> And what Mr Hughes wrote will also work.
>
I'm sure you are both right. However, I took the long path and first
removed kernel and kernel-devel, then installed with 'rpm -ivh'. All
went OK. Thanks anyway.

Antti


_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 07-17-2008, 07:12 PM
"Antti J. Huhtala"
 
Default Replacing custom kernel with another - with same identifier

to, 2008-07-17 kello 10:11 -0700, Akemi Yagi kirjoitti:
> On Thu, Jul 17, 2008 at 12:05 AM, Antti J. Huhtala <ahuhtal4@welho.com> wrote:
> > Hi list,
> >
> > I just finished building a custom kernel from 2.6.18-53.1.21 source rpm
> > - this time with ISA bus and ISAPNP support which I accidentally left
> > out of my previous attempt.
> > Unfortunately, this time I forgot to change my identifier in
> > kernel-2.6.spec file. Thus I now have one *installed* kernel version
> > *without* ISA support, and another one *with* ISA support but as rpm,
> > not yet installed. Both kernels now have identical identifiers.
> >
> > What is the safe way to remove the previous installed kernel version
> > without taking out the uninstalled new version? Is the latter safe in
> > ~/rpmbuild/RPMS if I use 'rpm -e' to remove the former version?
>
> Hi Antti,
>
> I don't know if you have some reason and must stay at that old kernel,
> but I advise you get the current 2.6.18-92.1.6 kernel and rebuild.
> Then you'd have a chance to get your buildid in.
>
> Akemi

Thanks, Akemi, but I first tried just that. In a post to Alan (you
should have a copy of it) I told my box crashed with 2.6.18-92.1.6
(kernel panic: Not syncing). 2.6.18-92.1.6.el5.bz_pre53 worked but I
didn't find the source rpm until Alan told me where to find it.
I have now dl'd the source rpm and will try compiling it soon.
I just wanted to have one kernel with ISA support and now I have it.
Building the newest kernel with ISA support should be relatively simple
based on my recent experiences.

Antti


_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 

Thread Tools




All times are GMT. The time now is 02:50 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org