[opensuse] Kernel versions and multiversion
I want to add a specific kernel to the list of ones to keep. I thought this would be straight forward. For example, I want to keep the kernel in this RPM: kernel-default-5.8.15-1.2.x86_64 That RPM says: Version : 5.8.15 Release : 1.2 uname when it is running says: 5.8.15-1-default So, for the multiversion definition, which is the version to specify? 5.8.15-1.2 5.8.15-1-default I suspect it should be 5.8.15-1.2 as that is in the RPM. Right? -- Roger Oberholtzer -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
04.11.2020 22:22, Roger Oberholtzer пишет:
I want to add a specific kernel to the list of ones to keep. I thought this would be straight forward. For example, I want to keep the kernel in this RPM:
kernel-default-5.8.15-1.2.x86_64
That RPM says:
Version : 5.8.15 Release : 1.2
uname when it is running says:
5.8.15-1-default
So, for the multiversion definition, which is the version to specify?
5.8.15-1.2 5.8.15-1-default
I suspect it should be 5.8.15-1.2 as that is in the RPM. Right?
It should work with just 5.8.15-1 (so you do not care about pure package rebuilds without any content changes). There was bug and you had to specify full release, but it should be fixed now. https://bugzilla.opensuse.org/show_bug.cgi?id=1176192 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Wed, Nov 4, 2020 at 8:57 PM Andrei Borzenkov <arvidjaar@gmail.com> wrote:
04.11.2020 22:22, Roger Oberholtzer пишет:
I want to add a specific kernel to the list of ones to keep. I thought this would be straight forward. For example, I want to keep the kernel in this RPM:
kernel-default-5.8.15-1.2.x86_64
That RPM says:
Version : 5.8.15 Release : 1.2
uname when it is running says:
5.8.15-1-default
So, for the multiversion definition, which is the version to specify?
5.8.15-1.2 5.8.15-1-default
I suspect it should be 5.8.15-1.2 as that is in the RPM. Right?
It should work with just 5.8.15-1 (so you do not care about pure package rebuilds without any content changes). There was bug and you had to specify full release, but it should be fixed now.
Okay. I still think it is odd that it takes only part of the release number: 1 instead of 1.2 Also, I would imagine I could have other than 'default'. Where does that fit in here? -- Roger Oberholtzer -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Thu, Nov 5, 2020 at 10:49 AM Roger Oberholtzer <roger.oberholtzer@gmail.com> wrote:
On Wed, Nov 4, 2020 at 8:57 PM Andrei Borzenkov <arvidjaar@gmail.com> wrote:
04.11.2020 22:22, Roger Oberholtzer пишет:
I want to add a specific kernel to the list of ones to keep. I thought this would be straight forward. For example, I want to keep the kernel in this RPM:
kernel-default-5.8.15-1.2.x86_64
That RPM says:
Version : 5.8.15 Release : 1.2
uname when it is running says:
5.8.15-1-default
So, for the multiversion definition, which is the version to specify?
5.8.15-1.2 5.8.15-1-default
I suspect it should be 5.8.15-1.2 as that is in the RPM. Right?
It should work with just 5.8.15-1 (so you do not care about pure package rebuilds without any content changes). There was bug and you had to specify full release, but it should be fixed now.
Okay. I still think it is odd that it takes only part of the release number: 1 instead of 1.2
Second digit is incremented during package rebuilds; there should be no content difference between 1.2 and 1.3. Leaving out the rebuild counter simplifies configuration as the number of rebuilds is not predictable. Moreover, if release 1.3 will appear, release 1.2 will be removed even before purge-kernels has a chance to evaluate it, so you will be left with 1.2 in zypper configuration and 1.3 installed and 1.3 won't match and will be purged.
Also, I would imagine I could have other than 'default'. Where does that fit in here?
"default" is part of the package name, not version. All packages that match "multiversion" condition will be subject to the same handling. By default configuration has multiversion = provides:multiversion(kernel) and all kernel packages provide multiverion(kernel). -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Thu, Nov 5, 2020 at 9:12 AM Andrei Borzenkov <arvidjaar@gmail.com> wrote:
Also, I would imagine I could have other than 'default'. Where does that fit in here?
"default" is part of the package name, not version. All packages that match "multiversion" condition will be subject to the same handling. By default configuration has
except that uname -a includes the 'default' part. I think that is where my uncertainty came from. -- Roger Oberholtzer -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Roger Oberholtzer composed on 2020-11-04 20:22 (UTC+0100):
I want to add a specific kernel to the list of ones to keep. I thought this would be straight forward. For example, I want to keep the kernel in this RPM:
kernel-default-5.8.15-1.2.x86_64
That RPM says:
Version : 5.8.15 Release : 1.2
uname when it is running says:
5.8.15-1-default
So, for the multiversion definition, which is the version to specify?
5.8.15-1.2 5.8.15-1-default
I suspect it should be 5.8.15-1.2 as that is in the RPM. Right?
As Andrei wrote, but also: kernel-default-5.8.15* would suffice. With any wildcard, when you ask zypper to add or remove a locked package in spite of the lock, it does not remove the lock as it claims it will do. Instead it simply ignores it. One thing a wildcard allows is if you wish to remove several kernels with such a lock, it is sufficient to simply specify 'zypper rm kernel-default', then for each kernel presented for action, answer 1 to allow removal and 2 to reject removal. e.g. zypper al kernel-def* Zypper is vastly superior to apt*/dpkg, yum and especially dnf regarding package locking! -- Evolution as taught in public schools, like religion, is based on faith, not on science. Team OS/2 ** Reg. Linux User #211409 ** a11y rocks! Felix Miata *** http://fm.no-ip.com/ -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (3)
-
Andrei Borzenkov
-
Felix Miata
-
Roger Oberholtzer