Choose style:

Author Topic: (SOLVED) Linux image update: what is being used?  (Read 2715 times)

0 Members and 1 Guest are viewing this topic.

Offline Slim.Fatz

  • Trusted User
  • Veteran
  • *****
  • Posts: 1752
  • Karma: 466
  • Where's the mouse?
    • View Profile
  • Peppermint version(s): Peppermint 7, 8.5 & 10 - 64bit
(SOLVED) Linux image update: what is being used?
« on: July 17, 2014, 04:06:35 am »
After updating today (using synaptic) I see that my grub.cfg file shows the menu entry for Peppermint 5 points to
Code: [Select]
/boot/vmlinuz-3.13.0-32-generic
In Synaptic I see that both
Code: [Select]
linux-image-generic version 3.13.0.32.38
linux-image-3.13.0-32-generic version 3.13.0-32.57
are installed. ???

My questions:
1. Is
Code: [Select]
linux-image-3.13.0-32-generic version 3.13.0-32.57
being used?

2. If so, why do I even have
Code: [Select]
linux-image-generic version 3.13.0.32.38
installed? :-\

Thanks in advance for clarification,
-- Slim
« Last Edit: July 19, 2014, 10:51:40 am by Slim.Fatz »
"Life first -- Peppermint a close 2nd!" -- Zeb

Tread lightly: Fluxbox, JWM, i3, Openbox, awesome

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25456
  • Karma: 2799
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: Linux image update: what is being used?
« Reply #1 on: July 18, 2014, 04:12:44 pm »
1) You can find out which kernel is in use by running:
Code: [Select]
uname -a

2) Peppeermint NEVER uninstalls a kernel when a new kernel is installed .. that way if the new kernel refuses to boot, you can choose to boot from the old kernel from the GRUB menu.

If installing the new kernel removed the old one and the new one didn't work with your hardware (some kind of regression) you'd be "well in it" wouldn't you ;)
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline Slim.Fatz

  • Trusted User
  • Veteran
  • *****
  • Posts: 1752
  • Karma: 466
  • Where's the mouse?
    • View Profile
  • Peppermint version(s): Peppermint 7, 8.5 & 10 - 64bit
Re: Linux image update: what is being used?
« Reply #2 on: July 18, 2014, 05:29:11 pm »
Thanks for the reply!  8)


Running
Code: [Select]
uname -a
shows that the 3.13.0-32-generic #57-Ubuntu SMP is being used. I know about keeping old kernels in case new ones don't work (has happened to me with Arch some years ago, and I'm glad that I had the old kernel!).


I guess what it is that I don't understand (among most things concerning kernels) is this: what exactly is vmlinuz-3.13.0-32-generic? Is it sort of a "wrapper" for the most current 3.13.0-32 kernel (which on my box is #57)? And, if so, and #57 didn't work, where or how could I get back to #38 (which did work and is still present, according to synaptic: listed as simply linux-image-generic)? Or would I have to go back to the vmlinuz.old that I see in / and points to vmlinuz-3-13-0-30-generic?


I get dizzy just writing all this ... :-\


Regards,
-- Slim
"Life first -- Peppermint a close 2nd!" -- Zeb

Tread lightly: Fluxbox, JWM, i3, Openbox, awesome

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25456
  • Karma: 2799
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: Linux image update: what is being used?
« Reply #3 on: July 18, 2014, 05:46:17 pm »
Read this:
http://peppermintos.net/viewtopic.php?p=38703#p38703

and if you still have any questions I'll try to clarify :)



Quote
A kernel update will be initialised by a new version of linux-image-generic which is just a metapackage that then installs the new kernel packages as dependencies, it will pull in for example -
linux-image-3.8.0-30-generic
linux-image-extra-3.8.0-30-generic
linux-firmware

So when a new kernel is added to the repo, they also add a new "linux-image-generic" package that *can* be installed as an "update" (as its name contains no version number) .. that metapackage then pulls in the new kernel packages (whos names *do* contain a version number) as dependencies, thereby also leaving the old kernel intact rather than *replacing* them.

This method also ensures you never have linux-image-<version> and linux-image-extras-<version>  out of sync.
« Last Edit: July 18, 2014, 05:56:29 pm by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline Slim.Fatz

  • Trusted User
  • Veteran
  • *****
  • Posts: 1752
  • Karma: 466
  • Where's the mouse?
    • View Profile
  • Peppermint version(s): Peppermint 7, 8.5 & 10 - 64bit
Re: Linux image update: what is being used?
« Reply #4 on: July 19, 2014, 04:33:27 am »
FANTASTIC! Thanks for the clear explanation! I was always wondering why the linux-image-generic package had no version number ... now I know. I thought that maybe I should be doing something to make sure that the new versions were being used!
 ::)
Live and learn ...

Regards,
-- Slim
"Life first -- Peppermint a close 2nd!" -- Zeb

Tread lightly: Fluxbox, JWM, i3, Openbox, awesome

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25456
  • Karma: 2799
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: Linux image update: what is being used?
« Reply #5 on: July 19, 2014, 10:38:25 am »
NP :)
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec