Re: [CentOS] Replacing custom kernel with another - with same identifier

2008-07-17 Thread Antti J. Huhtala
to, 2008-07-17 kello 10:11 -0700, Akemi Yagi kirjoitti:
> On Thu, Jul 17, 2008 at 12:05 AM, Antti J. Huhtala <[EMAIL PROTECTED]> 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


Re: [CentOS] Replacing custom kernel with another - with same identifier

2008-07-17 Thread Antti J. Huhtala
to, 2008-07-17 kello 17:58 +0100, ne.. kirjoitti:
> On Thu, Jul 17, 2008 at 10:19, Antti J. Huhtala <[EMAIL PROTECTED]> wrote:
> > to, 2008-07-17 kello 09:16 +0100, ne.. kirjoitti:
> >> On Thu, Jul 17, 2008 at 08:05, Antti J. Huhtala <[EMAIL PROTECTED]> 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
>   --replacepkgsreinstall 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


Re: [CentOS] Replacing custom kernel with another - with same identifier

2008-07-17 Thread Antti J. Huhtala
to, 2008-07-17 kello 05:26 -0500, Johnny Hughes kirjoitti:
> Antti J. Huhtala wrote:
> > to, 2008-07-17 kello 09:16 +0100, ne.. kirjoitti:
> >> On Thu, Jul 17, 2008 at 08:05, Antti J. Huhtala <[EMAIL PROTECTED]> 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
> 
> rpm -ivh --force 
> 
OK, thanks. I decided to try 'rpm -e kernel', 'rpm -e
kernel-devel, and then went to ~/rpmbuild/RPMS/i686 and ran
'rpm -ivh kernel.rpm. All went well.

Antti


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


Re: [CentOS] Replacing custom kernel with another - with same identifier

2008-07-17 Thread Akemi Yagi
On Thu, Jul 17, 2008 at 12:05 AM, Antti J. Huhtala <[EMAIL PROTECTED]> 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


Re: [CentOS] Replacing custom kernel with another - with same identifier

2008-07-17 Thread ne . . .
On Thu, Jul 17, 2008 at 10:19, Antti J. Huhtala <[EMAIL PROTECTED]> wrote:
> to, 2008-07-17 kello 09:16 +0100, ne.. kirjoitti:
>> On Thu, Jul 17, 2008 at 08:05, Antti J. Huhtala <[EMAIL PROTECTED]> 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
  --replacepkgsreinstall 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


Re: [CentOS] Replacing custom kernel with another - with same identifier

2008-07-17 Thread Johnny Hughes

Antti J. Huhtala wrote:

to, 2008-07-17 kello 09:16 +0100, ne.. kirjoitti:

On Thu, Jul 17, 2008 at 08:05, Antti J. Huhtala <[EMAIL PROTECTED]> 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


rpm -ivh --force 



signature.asc
Description: OpenPGP digital signature
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Replacing custom kernel with another - with same identifier

2008-07-17 Thread Antti J. Huhtala
to, 2008-07-17 kello 09:16 +0100, ne.. kirjoitti:
> On Thu, Jul 17, 2008 at 08:05, Antti J. Huhtala <[EMAIL PROTECTED]> 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


Re: [CentOS] Replacing custom kernel with another - with same identifier

2008-07-17 Thread Antti J. Huhtala
to, 2008-07-17 kello 09:16 +0100, ne.. kirjoitti:
> On Thu, Jul 17, 2008 at 08:05, Antti J. Huhtala <[EMAIL PROTECTED]> 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


Re: [CentOS] Replacing custom kernel with another - with same identifier

2008-07-17 Thread ne . . .
On Thu, Jul 17, 2008 at 08:05, Antti J. Huhtala <[EMAIL PROTECTED]> 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.

-- 
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