LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 04-24-2008, 08:42 AM   #1
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629

Rep: Reputation: Disabled
Install kernel rpm with "yast -i"


I got a patched kernel (for a card reader), to be exact it is kernel-default-2.6.22.12-2.3.i586.rpm. Can I do a
Code:
yast -i kernel-default-2.6.22.12-2.3.i586.rpm
on a console or how else is it installed without breaking everything? I mean, it is a change of the kernel "on the fly" so to speak...
 
Old 04-24-2008, 02:56 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
You could open your file browser, find the patch you have downloaded, and click on it. You should be presented with the option to install via YaST. YaST will install the patch, and run any config file updates that are necessary.

However, it the kernel number changes as a result of the patch, I have three questions that I do not know the answers.
a) does YaST make a new compressed kernel image (bzImage)?
b) does YaST put a copy of that image in /boot as vmlinuz-<kernel number>?
c) does YaST make the necessary changes to /boot/grub/menu.lst?

If a) is NO, then so are b) and c). In which case, you will boot into the unpatched kernel image in boot, instead of the patched kernel.
 
Old 04-25-2008, 01:09 AM   #3
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by bigrigdriver View Post
You could open your file browser, find the patch you have downloaded, and click on it. You should be presented with the option to install via YaST. YaST will install the patch, and run any config file updates that are necessary.
Ummm. It is a kernel rpm not a patch to be applied to the sources. So it would have to be handled like any other piece of software I'd install (I'd guess). I'll click on it and see. BTW "yast -i <the-rpm>" does just that, i.e. install and run the necessary configs.

Quote:
Originally Posted by bigrigdriver View Post
However, it the kernel number changes as a result of the patch, ...
It does.

Quote:
Originally Posted by bigrigdriver View Post
...I have three questions that I do not know the answers.
a) does YaST make a new compressed kernel image (bzImage)?
I'd assume, that the bzImage is in the rpm (which is only of the size of 20 MB)?!?
Quote:
Originally Posted by bigrigdriver View Post
b) does YaST put a copy of that image in /boot as vmlinuz-<kernel number>?
That would be the proper way of installing the kernel-"program"...
Quote:
Originally Posted by bigrigdriver View Post
c) does YaST make the necessary changes to /boot/grub/menu.lst?
Good question but easy to check .

Quote:
Originally Posted by bigrigdriver View Post
If a) is NO, then so are b) and c). In which case, you will boot into the unpatched kernel image in boot, instead of the patched kernel.
"uname -a" is my friend here...

Thanks for your input .

Last edited by JZL240I-U; 04-25-2008 at 01:12 AM.
 
Old 04-25-2008, 04:50 PM   #4
lambchops468
Member
 
Registered: Mar 2007
Location: New Jersey, USA
Distribution: Archlinux
Posts: 165

Rep: Reputation: 30
Where is the RPM from?

That makes the whole difference if it changes the boot loader, and the other stuff.

(but from my experience, suse rpms contain scripts to change the boot loader.
when creating a custom kernel and using "make rpm"
everything is done execpt making the boot ram disk and the boot loader.)

oh, and it doesn't really "change on the fly." The new kernel, in order to activate, must be rebooted.

Last edited by lambchops468; 04-25-2008 at 04:52 PM.
 
Old 04-28-2008, 01:10 AM   #5
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629

Original Poster
Rep: Reputation: Disabled
It is from Frank Seidel, a guy who works for SuSE / Novell Germany. So it does have an optimistic outlook. I'll try soonest (forgot my memory stick over the weekend ).

Last edited by JZL240I-U; 04-29-2008 at 01:06 AM.
 
Old 04-29-2008, 01:06 AM   #6
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629

Original Poster
Rep: Reputation: Disabled
Grrr. The boot partition is too small, the new kernel needs a little more than 8 MB. I'll have to get a Knoppix CD and move the other partitions and resize /boot. I'll be back after that...

Last edited by JZL240I-U; 04-29-2008 at 01:09 AM.
 
Old 04-30-2008, 01:16 AM   #7
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629

Original Poster
Rep: Reputation: Disabled
Solved

Okay, I moved them (why does Gparted copy twice with differing block sizes?!?) and installed the kernel-rpm via one click on it in Konqueror -- and lo and behold everything went well.

YAST even changed the entries in menu.lst (so GRUB didn't find the older instances of SuSE 10.0 -- hrmmph) and told me to reboot. After that uname -a showed the new kernel version (and the font in the GRUB boot menu was changed). So I edited menu.lst and all is well.

This is a HowTo for building kernel-rpms on and for SuSE systems for those who are interested:

http://www.howtoforge.com/kernel_compilation_suse

Thanks for all input into this "problem".

Last edited by JZL240I-U; 04-30-2008 at 01:18 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Yast Online Update (YOU) error "could not reassemble rpm from delta" RedBoot SUSE / openSUSE 3 03-06-2006 11:23 AM
Yast Online Update (YOU) error "could not reassemble rpm from delta" RedBoot Linux - Software 5 02-15-2006 08:33 PM
Kernel RPM "diff" update patches. redarrow Fedora 2 10-22-2005 01:52 AM
yast "Install and Remove Software" won't start? lnebrown SUSE / openSUSE 19 02-07-2005 08:26 AM
Newbie problem: Starting YAST gives me "-bash: yast: command not found". cattleya Linux - Software 9 11-20-2003 11:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 11:26 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration