[opensuse-factory] Avoid kernel-kvmsmall entry in grub.cfg
Hi, I maintain the katacontainers package, and I require to install kernel-kvmsmall with it, that's basically used to run: qemu -kernel /boot/vmlinuz-x.x.x-kvmsmall ... The problem is that, when installing kernel-kvmsmall, this kernel is added in grub.cfg and set as the default one, that's something obviously undesired. Any way to avoid this? I thought about `BuildRequires: kernel-kvmsmall` and then just copy the vmlinuz image in the katacontainers package during %install. But, I am not sure that's a good practice. Thanks Marco
On 8/28/19 3:28 PM, Marco Vedovati wrote:
I maintain the katacontainers package, and I require to install kernel-kvmsmall with it, that's basically used to run:
qemu -kernel /boot/vmlinuz-x.x.x-kvmsmall ...
The problem is that, when installing kernel-kvmsmall, this kernel is added in grub.cfg and set as the default one, that's something obviously undesired.
Why is this "obviously undesired"? I'm using kernel-kvmsmall in all my regular VMs. Therefore I obviously want this package to behave like a normal kernel variant package. Ciao, Michael. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
On 8/28/19 3:33 PM, Michael Ströder wrote:
On 8/28/19 3:28 PM, Marco Vedovati wrote:
The problem is that, when installing kernel-kvmsmall, this kernel is added in grub.cfg and set as the default one, that's something obviously undesired.
Why is this "obviously undesired"?
It is "obviously undesired" in this use case, because the kernel is installed on the host along with the hypervisor, not inside the VM.
I'm using kernel-kvmsmall in all my regular VMs. Therefore I obviously want this package to behave like a normal kernel variant package.
Makes sense, and it should stay like that. I just ask for a way to avoid that in my case.
Ciao, Michael.
28.08.2019 17:12, Marco Vedovati пишет:
On 8/28/19 3:33 PM, Michael Ströder wrote:
On 8/28/19 3:28 PM, Marco Vedovati wrote:
The problem is that, when installing kernel-kvmsmall, this kernel is added in grub.cfg and set as the default one, that's something obviously undesired.
Why is this "obviously undesired"?
It is "obviously undesired" in this use case, because the kernel is installed on the host along with the hypervisor, not inside the VM.
I'm using kernel-kvmsmall in all my regular VMs. Therefore I obviously want this package to behave like a normal kernel variant package.
Makes sense, and it should stay like that. I just ask for a way to avoid that in my case.
Do not install it in /boot on host then. It does not matter which path is used in qemu invocation, does it? If it must be in /boot you will have to patch /etc/grub.d/10_linux to exclude it. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
On 8/28/19 6:50 PM, Andrei Borzenkov wrote:
Do not install it in /boot on host then. It does not matter which path is used in qemu invocation, does it?
Path doesn't matter. But a `zypper in -y katacontainers` does now install the kernel-kvmsmall package and so add "vmlinuz-5.2.x-kvmsmall" in /boot. The purpose of this thread is finding a way to avoid this.
If it must be in /boot you will have to patch /etc/grub.d/10_linux to exclude it.
N�����r��y隊Z)z{.���r�+�맲��r��z�^�ˬz��N�(�֜��^� ޭ隊Z)z{.���r�+��0�����Ǩ�
participants (3)
-
Andrei Borzenkov
-
Marco Vedovati
-
Michael Ströder