kernel-install: make version/kernel image parameters optional for "add"
authorLennart Poettering <lennart@poettering.net>
Mon, 6 Nov 2023 09:47:10 +0000 (10:47 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 7 Nov 2023 15:07:25 +0000 (16:07 +0100)
commit9d9e99a8f0b6db433e2c42228cdba2d13ff9b537
treef90e6e244a622d50954e447a215514683b336d38
parent658e6cc4ae50d6eccb665e42a15f4f2d20e88cf1
kernel-install: make version/kernel image parameters optional for "add"

Let's make kernel-install a bit easier to use:

If the kernel version is not specified, let's imply "uname -r", so that
we regnerate the entries for the current kernel.

If the kernel image is not specified let's imply using
/usr/lib/modules/$version/vmlinuz, i.e. the location distros like Fedora
drop the kernel into, which we generally recommend people to use.

If the kernel is not found there, don't try to automatically pick the
kernel path, and fail, as before.
man/kernel-install.xml
src/kernel-install/kernel-install.c