Skip to content

Commit 695507b

Browse files
installkernel: ensure we can still enable verbose mode from env
In previous versions of systemd's kernel-install we could set KERNEL_INSTALL_VERBOSE=1 in the env to do the equivalent of --verbose. It looks like that functionality was removed at some point which makes it impossible to enable verbose mode from 'make install' when kernel installation is delegated to systemd's kernel-install. So move the part where we add the --verbose flag to a separate condition so it is also triggered by the environment. Signed-off-by: Nowa Ammerlaan <nowa@gentoo.org>
1 parent b857b16 commit 695507b

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎installkernel‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ while [ ${#} -gt 0 ]; do
5454
;;
5555
--verbose|-v)
5656
INSTALLKERNEL_VERBOSE=1
57-
_ik_remaining_optargs="${_ik_remaining_optargs} ${1}"
5857
;;
5958
--all|-a)
6059
_ik_install_all=1
@@ -91,6 +90,10 @@ while [ ${#} -gt 0 ]; do
9190
shift
9291
done
9392

93+
if [ "${INSTALLKERNEL_VERBOSE}" -gt 0 ]; then
94+
_ik_remaining_optargs="${_ik_remaining_optargs} --verbose"
95+
fi
96+
9497
if [ "${SYSTEMD_KERNEL_INSTALL}" -eq 1 ] && command -v kernel-install >/dev/null
9598
then
9699
# If the ${0} of kernel-install is installkernel it takes its arguments

0 commit comments

Comments
 (0)