]> git.ipfire.org Git - thirdparty/dracut-ng.git/commit
test: avoid kernel-install add-all
authorBenjamin Drung <benjamin.drung@canonical.com>
Thu, 25 Sep 2025 23:28:05 +0000 (01:28 +0200)
committerLaszlo <laszlo.gombos@gmail.com>
Fri, 26 Sep 2025 00:21:19 +0000 (20:21 -0400)
commit0e88cccbf73da2b6f9889aa39fb089a4c815df9e
tree1d2e4e5f6cc27de5d67007517fedbeee58b46077
parent587e764629f03c0b01851adb0d52eb8264a6c394
test: avoid kernel-install add-all

The man page of `kernel-install` says about `add-all`: "This is the same
as add, but invokes the operation iteratively for every installed kernel
in /usr/lib/modules/. This operation is only supported on systems where
the kernel image is installed in
/usr/lib/modules/KERNEL-VERSION/vmlinuz."

Debian and Ubuntu do not ship the kernel images in `/usr/lib/modules/`
and therefore `add-all` is not supported there.

Since the test cases already determine the kernel version, search for
the kernel image and use `kernel-install add` instead of `add-all`.
test/TEST-12-UEFI/test.sh
test/TEST-43-KERNEL-INSTALL/test.sh
test/test-functions