As notified on IRC #gentoo-catalyst, here is my patch for propagating
the 'verbose' option from catalyst through to the genkernel build and
resulting emerge callback (in installcd-stage2).

Tested OK this end (fixed a minor typo in genkernel parameter) ready for
review. I can raise a PR, but here is the 'git format-patch' version for
consideration.

Best regards,

Michael Everitt.
From 27c8d4d2bc1df5801632a1b93be5d36984cdbdd8 Mon Sep 17 00:00:00 2001
From: "M. J. Everitt" <[email protected]>
Date: Wed, 3 Jan 2018 02:00:41 +0000
Subject: [PATCH] Added verbose support for genkernel, and callback emerge

---
 targets/support/kmerge.sh | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/targets/support/kmerge.sh b/targets/support/kmerge.sh
index fc066cc0..9a5daabd 100755
--- a/targets/support/kmerge.sh
+++ b/targets/support/kmerge.sh
@@ -69,6 +69,11 @@ setup_gk_args() {
 			GK_ARGS="${GK_ARGS} --initramfs-overlay=\"${clst_merge_path}\""
 		fi
 	fi
+
+	if [[ "${clst_VERBOSE}" == "true" ]]
+	then
+		GK_ARGS="${GK_ARGS} --loglevel=2"
+	fi
 }
 
 genkernel_compile(){
@@ -92,7 +97,12 @@ genkernel_compile(){
 	esac
 	# Build with genkernel using the set options
 	# callback is put here to avoid escaping issues
-	gk_callback_opts="-qN"
+	if [[ "${clst_VERBOSE}" == "true" ]]
+	then
+		gk_callback_opts="-vN"
+	else
+		gk_callback_opts="-qN"
+	fi
 	PKGDIR=${PKGDIR}
 	if [ -n "${clst_KERNCACHE}" ]
 	then
-- 
2.13.6

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to