public inbox for gentoo-catalyst@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-catalyst] [PATCH]: Add verbose support for genkernel and callback emerge
@ 2018-01-03 13:13 M. J. Everitt
  0 siblings, 0 replies; only message in thread
From: M. J. Everitt @ 2018-01-03 13:13 UTC (permalink / raw
  To: gentoo-catalyst


[-- Attachment #1.1.1: Type: text/plain, Size: 395 bytes --]

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.

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.1.2: 0001-Added-verbose-support-for-genkernel-and-callback-eme.patch --]
[-- Type: text/x-patch; name="0001-Added-verbose-support-for-genkernel-and-callback-eme.patch", Size: 1113 bytes --]

From 27c8d4d2bc1df5801632a1b93be5d36984cdbdd8 Mon Sep 17 00:00:00 2001
From: "M. J. Everitt" <m.j.everitt@iee.org>
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 #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 862 bytes --]

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2018-01-03 13:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-03 13:13 [gentoo-catalyst] [PATCH]: Add verbose support for genkernel and callback emerge M. J. Everitt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox