projg2 / installkernel-gentoo

Gentoo fork of installkernel from debianutils
GNU General Public License v2.0
19 stars 7 forks source link

efistub kernel-bootcfg unrecognized arguments error #26

Closed moabeat-berlin closed 7 months ago

moabeat-berlin commented 7 months ago

Am using the experimental automatic update of the UEFI boot configuration for efistub. When I updates my kernel today, the execution of 95-efistub-kernel-bootcfg.install resulted in the following error:

kernel-bootcfg: error: unrecognized arguments: --loglevel info

Output of relevant section in emerge ``` About to execute /usr/lib/kernel/install.d/95-efistub-kernel-bootcfg.install add 6.8.5-gentoo-dist /efi/7839592cc5319cd280579e4365a1ead3/6.8.5-gentoo-dist /usr/src/linux-6.8.5-gentoo-dist/arch/x86/boot/bzImage Successfully forked off '(direxec)' as PID 31388. Adding /efi/EFI/Linux/7839592cc5319cd280579e4365a1ead3-6.8.5-gentoo-dist.efi to UEFI boot entries usage: kernel-bootcfg [-h] [-l LEVEL] [--vars FILE] [--show] [-v] [--add-uki FILE] [--update-uki FILE] [--remove-uki FILE] [--cmdline CMDLINE] [--boot-ok] [--update-csv] [--add-uri URI] [--remove-entry NNNN] [--once] [--boot-order POS] [--dry-run] [--title TITLE] [--shim FILE] kernel-bootcfg: error: unrecognized arguments: --loglevel info /usr/lib/kernel/install.d/95-efistub-kernel-bootcfg.install failed with exit status 1. /usr/lib/kernel/install.d/95-efistub-kernel-bootcfg.install failed with exit status 1. (sd-executor) failed with exit status 1. [ !! ] * Installing the kernel failed * * The kernel files were copied to disk successfully but the kernel * was not deployed successfully. Once you resolve the problems, * please run the equivalent of the following command to try again: * * emerge --config sys-kernel/gentoo-kernel:6.8.5 * ERROR: sys-kernel/gentoo-kernel-6.8.5::gentoo failed (config phase): * Kernel install failed, please fix the problems and run emerge --config sys-kernel/gentoo-kernel:6.8.5 * * Call stack: * ebuild.sh, line 136: Called pkg_config * environment, line 2533: Called kernel-install_pkg_config * environment, line 2029: Called kernel-install_install_all '6.8.5-gentoo-dist' * environment, line 2023: Called die * The specific snippet of code: * die "Kernel install failed, please fix the problems and run emerge --config ${CATEGORY}/${PN}:${SLOT}"; * * If you need support, post the output of `emerge --info '=sys-kernel/gentoo-kernel-6.8.5::gentoo'`, * the complete build log and the output of `emerge -pqv '=sys-kernel/gentoo-kernel-6.8.5::gentoo'`. * The complete build log is located at '/var/tmp/portage/sys-kernel/gentoo-kernel-6.8.5/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/sys-kernel/gentoo-kernel-6.8.5/temp/environment'. * Working directory: '/var/tmp/portage/sys-kernel/gentoo-kernel-6.8.5/empty' * S: '/var/tmp/portage/sys-kernel/gentoo-kernel-6.8.5/work/gentoo-kernel-6.8.5' ```

I assume the problem was introduced in this commit about ten days ago.

When removed the double-quotes in lines 38 and 41 around the ${LOGLEVEL} expansion, it worked fine afterwards. However, there are probably more instances in the script where this might be necessary.

Nowa-Ammerlaan commented 7 months ago

Fixed in v36.

Note for later: Somehow add USE=efistub to the tests so these things get caught before they end up in ::gentoo.