Mask Certain Kernel Version [Solved]

Anything that pertains to Entropy, Equo or Sulfur

Moderator: Moderators

Mask Certain Kernel Version [Solved]

Postby Honeyman » Mon Jun 02, 2014 5:31

Hi all,

due to problem that the most recent kernel revisions fail to boot on my laptop (see: viewtopic.php?f=86&t=31788), I'm see no other solution than to re-install my Sabayon Linux (so much for: "Rolling Release - Never Re-Install") and force entropy to never upgrade my kernel.

I had look into /etc/entropy/packages/package.mask.example, but still I'm not quite sure how prevent an upgrade of sys-kernel/linux-sabayon-3.14.x to a revision higher than 3.14.2



Code: Select all
# >=media-libs/foo-1.2.3#2.6.23-sabayon-r1
# media-libs/foo::sabayon-repo
#
# :1 means package with SLOT="1"
# #2.6.23-sabayon-r1 means package with kernel tag = 2.6.23-sabayon-r1


So that would be?

Code: Select all
>=sys-kernel/linux-sabayon-3.14.2


Thanks for your help
Last edited by Honeyman on Tue Jun 03, 2014 6:02, edited 3 times in total.
Je me regarde pour me désoler,
je me compare pour me consoler

Maurice de Talleyrand
Honeyman
Growing Hen
 
Posts: 159
Joined: Sun Apr 08, 2012 2:25
Location: Berlin, Germany


Re: Masked Certain Kernel Version

Postby Honeyman » Mon Jun 02, 2014 9:06

Thanks a lot sabayonino,

some things can be rather simple.

What if I want to prevent any upgrade higher than say "sys-kernel/linux-sabayon-3.14.2", not masking an specific package versions?
Je me regarde pour me désoler,
je me compare pour me consoler

Maurice de Talleyrand
Honeyman
Growing Hen
 
Posts: 159
Joined: Sun Apr 08, 2012 2:25
Location: Berlin, Germany

Re: Masked Certain Kernel Version

Postby sabayonino » Mon Jun 02, 2014 9:58

Honeyman wrote:Thanks a lot sabayonino,

some things can be rather simple.

What if I want to prevent any upgrade higher than say "sys-kernel/linux-sabayon-3.14.2", not masking an specific package versions?


you can use arithmetic symbols like :

<
>
>=
=<
=

to mask specific version or a range of versions
User avatar
sabayonino
Sagely Hen
 
Posts: 2587
Joined: Sun Sep 21, 2008 1:12
Location: Italy

Re: Mask Certain Kernel Version

Postby Honeyman » Mon Jun 02, 2014 20:27

Thanks,

so get this right (Frankly, I'm not the brightest person around, as you might have already guessed):

Having entropy NOT upgrade to a version HIGHER than "foo-3.14.2" I'd do?

Code: Select all
# equo mask "=<foo-3.14.2"
Je me regarde pour me désoler,
je me compare pour me consoler

Maurice de Talleyrand
Honeyman
Growing Hen
 
Posts: 159
Joined: Sun Apr 08, 2012 2:25
Location: Berlin, Germany

Re: Mask Certain Kernel Version

Postby sabayonino » Tue Jun 03, 2014 12:52

Honeyman wrote:Thanks,

so get this right (Frankly, I'm not the brightest person around, as you might have already guessed):

Having entropy NOT upgrade to a version HIGHER than "foo-3.14.2" I'd do?

Code: Select all
# equo mask "=<foo-3.14.2"


no. you'll masked all version older than 3.14.2 (including the cersion 3.14.2 (=) )


if you want mask all version HIGHER than 3.14.2 (not upgrade, excluding 3.14.2) , run
Code: Select all
# equo mask ">sys-kernel/linux-sabayon-3.14.2"


to mask all 3.14 kernel versions (example not upgrading 3.14 version and still running 3.13 and older) :
Code: Select all
# equo mask sys-kernel/linux-sabayon:3.14

see Slot field
Pacchetto: sys-kernel/linux-sabayon-3.14.4 branch: 5, [sabayon-weekly]
╠ Disponibile: versione: 3.14.4 ~ tag: NoTag ~ revisione: 1
╠ Installato: versione: Non installato ~ tag: n/d ~ revisione: n/d
Slot: 3.14



masking packages means not upgrade (or install) them
User avatar
sabayonino
Sagely Hen
 
Posts: 2587
Joined: Sun Sep 21, 2008 1:12
Location: Italy

Re: Mask Certain Kernel Version [Solved]

Postby linuxfluesterer » Tue Jun 03, 2014 13:54

So, to answer your other thread (Upgrade impossible), you can do this:
Code: Select all
# equo mask "=sys-kernel/linux-sabayon-3.14.3"
# equo mask "=sys-kernel/linux-sabayon-3.14.4"

Then a new Kernel with 3.14.5 will be installed by upgrade (if provided in Sab repo).
On the other hand, you may at least make a copy of omplete directory /lib/modules/3.14.0-sabayon to /lib/modules/3.14.2 (provided you have 3.14.2 now).
In worst case, you may boot with a USB stick and then copy /dev/sda1/lib/modules/3.14.2-sabayon back to 3.14.0-sabayon. You don't need to change /boot directory.
After reboot, Kernel 3.14.2 will be loaded then. And a new mainline (3.15) will never be installed (upgraded) automatically since your mainline is still 3.14. You'll have to install manually (with 'kernel-switcher' command.
I still have Kernel 3.14.2 copied from my backup and I'm just waiting for a newer Kernel (either 3.14.5 or 3.15). Then I will upgrade or newly install 3.15.

-Linuxfluesterer (I love KDE ...)
I really hope, that by the Brexit (poor Britain), TTIP will be finally prevented. But don't get tired to talk to your local politician to open eyes for danger to democracy because of TTIP
User avatar
linuxfluesterer
Old Dear Hen
 
Posts: 709
Joined: Thu Sep 20, 2012 19:47
Location: Germany

Re: Mask Certain Kernel Version [Solved]

Postby Honeyman » Tue Jun 03, 2014 15:54

Thanks for your elaborate answer. I was thinking of making a backup of my (working) kernels, but wasn't sure how to do that.

Unfortunately, masking kernel versions doesn't work for me. Entropy still refused to upgrade any packages, even though I only masked one kernel version.

For whatever reason, the system now boots with kernel 3.14.4, don't ask me why it didn't on my old system. Drives me mad, since that system ran so smoothly after having put in a lot of effort to tweak it (SSD trimming, profile-sync-daemon, pre-linking librabries).

I have a fresh backup of the entire /etc directory, but I'm not quite sure, whether I can copy that one back into my current system, except the fstab-file of course.
Je me regarde pour me désoler,
je me compare pour me consoler

Maurice de Talleyrand
Honeyman
Growing Hen
 
Posts: 159
Joined: Sun Apr 08, 2012 2:25
Location: Berlin, Germany

Re: Mask Certain Kernel Version [Solved]

Postby linuxfluesterer » Wed Jun 04, 2014 2:48

Maybe I can help you with the following. Every time, when you install or upgrade, the packages for your kernels, they are downloaded in:
Code: Select all
/var/lib/entropy/client/packages/packages/amd64/5/sys-kernel/

So, then, if you have a 64bit system also (if not, you have a 32bit aquivalent for amd64), you can list that sys-kernel directory and see your latest kernels, include version .1, .2, .3 and .4 for 3.14 Kernel. In my case, I have listed:
Code: Select all
sys-kernel:linux-sabayon-3.14.2.decc45f759e6b752627743ef66b76c3994ce09ac~0.tbz2
sys-kernel:linux-sabayon-3.14.2.decc45f759e6b752627743ef66b76c3994ce09ac~0.tbz2._entropy_package.lock
sys-kernel:linux-sabayon-3.14.2.decc45f759e6b752627743ef66b76c3994ce09ac~0.tbz2.mtime
sys-kernel:linux-sabayon-3.14.3.cb82e925acda381e1f56b1024ae2c0d8db82d2ae~0.tbz2
sys-kernel:linux-sabayon-3.14.3.cb82e925acda381e1f56b1024ae2c0d8db82d2ae~0.tbz2.edelta._entropy_package.lock
sys-kernel:linux-sabayon-3.14.3.cb82e925acda381e1f56b1024ae2c0d8db82d2ae~0.tbz2._entropy_package.lock
sys-kernel:linux-sabayon-3.14.3.cb82e925acda381e1f56b1024ae2c0d8db82d2ae~0.tbz2.mtime
sys-kernel:linux-sabayon-3.14.4.0c5b211d6136bc97a0e230136b26463d1a452b2a~1.tbz2
sys-kernel:linux-sabayon-3.14.4.0c5b211d6136bc97a0e230136b26463d1a452b2a~1.tbz2.edelta._entropy_package.lock
sys-kernel:linux-sabayon-3.14.4.0c5b211d6136bc97a0e230136b26463d1a452b2a~1.tbz2._entropy_package.lock
sys-kernel:linux-sabayon-3.14.4.0c5b211d6136bc97a0e230136b26463d1a452b2a~1.tbz2.mtime

You see, that I still have package ..3.14.2 listed? So, if you have also, then you can install this with opening a root console, change to the specified directory, list your content and then install with:
Code: Select all
equo install sys-kernel:linux-sabayon-3.14.2.decc45f759e6b752627743ef66b76c3994ce09ac~0.tbz2

and this Kernel 3.14.2 will be back again. But, be conscious, you must type all the package name beginning with sys-kernel: (after 3.14.2 use tab key) ending with .tbz2.
Hope this will help...

-Linuxfluesterer (I love KDE ...)
I really hope, that by the Brexit (poor Britain), TTIP will be finally prevented. But don't get tired to talk to your local politician to open eyes for danger to democracy because of TTIP
User avatar
linuxfluesterer
Old Dear Hen
 
Posts: 709
Joined: Thu Sep 20, 2012 19:47
Location: Germany

Re: Mask Certain Kernel Version [Solved]

Postby Honeyman » Wed Jun 04, 2014 10:52

Thanks, that looks like a cool solution. Except that this implies that one is still able to boot the system which was not possible in my case.
Je me regarde pour me désoler,
je me compare pour me consoler

Maurice de Talleyrand
Honeyman
Growing Hen
 
Posts: 159
Joined: Sun Apr 08, 2012 2:25
Location: Berlin, Germany

Next

Return to Entropy|Equo|Rigo Package Managers

Who is online

Users browsing this forum: No registered users and 2 guests

cron