Here is a patch for the kernel.spec, which changes the version of kernel flavor/variants to end in "-$flavor" instead of ".$flavor". This change makes it easier to detect a flavor and a parser can separate it from the architecture.
With that change we can correct kernel-install (of systemd) to call new-kernel-package with --package kernel-$flavor, because the $flavor can easily be extracted from the version string.
Another solution would be to name the default kernel to have a flavor "default" like SUSE does, but this does not look nice.
Another solution would be a hardcoded list of flavors in kernel-install.
The last solution would be to add a flavor argument to kernel-install, which has no purpose other than to pass it through to new-kernel-package.
Hi!
Harald Hoyer wrote on 11.06.2013 16:06:
Here is a patch for the kernel.spec, which changes the version of kernel flavor/variants to end in "-$flavor" instead of ".$flavor". [...]
Patch didn't make it trough afaics.
With that change we can correct kernel-install (of systemd) to call new-kernel-package with --package kernel-$flavor, because the $flavor can easily be extracted from the version string.
Another solution would be to name the default kernel to have a flavor "default" like SUSE does, but this does not look nice.
Having been involved with various things around kernel pkgs from Fedora (including kmods as used in RPM Fusion): It would make a lot of scripts I used or used a whole lot easier if the stock kernel would have a flavor, too. So I'm all for giving it a name. Ubuntu, btw, calls the standard kernel "generic".
[...]
CU knurd
On Tue, Jun 11, 2013 at 04:34:40PM +0200, Thorsten Leemhuis wrote:
Hi!
Harald Hoyer wrote on 11.06.2013 16:06:
Here is a patch for the kernel.spec, which changes the version of kernel flavor/variants to end in "-$flavor" instead of ".$flavor". [...]
Patch didn't make it trough afaics.
Yeah. I don't know why.
With that change we can correct kernel-install (of systemd) to call new-kernel-package with --package kernel-$flavor, because the $flavor can easily be extracted from the version string.
Another solution would be to name the default kernel to have a flavor "default" like SUSE does, but this does not look nice.
Having been involved with various things around kernel pkgs from Fedora (including kmods as used in RPM Fusion): It would make a lot of scripts I used or used a whole lot easier if the stock kernel would have a flavor, too. So I'm all for giving it a name. Ubuntu, btw, calls the standard kernel "generic".
In previous discussions with Harald, he just meant having it show up in the installed files and uname. The actual RPM name would still just be 'kernel', so I don't think it would help you there.
josh
On 06/11/2013 04:34 PM, Thorsten Leemhuis wrote:
Hi!
Harald Hoyer wrote on 11.06.2013 16:06:
Here is a patch for the kernel.spec, which changes the version of kernel flavor/variants to end in "-$flavor" instead of ".$flavor". [...]
Patch didn't make it trough afaics.
git format-patch attached
kernel@lists.fedoraproject.org