summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Deutschmann <whissi@gentoo.org>2019-08-07 17:39:40 +0200
committerThomas Deutschmann <whissi@gentoo.org>2019-08-07 17:45:44 +0200
commit86dcf9aa5faa2ecd11c8303d6e551db858afe7c5 (patch)
tree601e7c8449d6f68581d2fba68727f18bffffd458
parentgen_cmdline.sh: parse_cmdline(): We no longer require /sbin/mdadm to be prese... (diff)
downloadgenkernel-86dcf9aa5faa2ecd11c8303d6e551db858afe7c5.tar.gz
genkernel-86dcf9aa5faa2ecd11c8303d6e551db858afe7c5.tar.bz2
genkernel-86dcf9aa5faa2ecd11c8303d6e551db858afe7c5.zip
gen_determineargs.sh: determine_real_args(): Move GK_TIME_START initialization to genkernelv4.0.0_beta11
We maybe trigger a failure before determine_real_args() was called and therefore need this value very early. Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
-rwxr-xr-xgen_determineargs.sh1
-rwxr-xr-xgenkernel2
2 files changed, 2 insertions, 1 deletions
diff --git a/gen_determineargs.sh b/gen_determineargs.sh
index d2fbd865..d3669b83 100755
--- a/gen_determineargs.sh
+++ b/gen_determineargs.sh
@@ -375,7 +375,6 @@ determine_real_args() {
small_die "Cannot write to '${LOGFILE}'!"
fi
- GK_TIME_START=$(date +%s)
echo ">>> Started genkernel v${GK_V} on: $(date +"%Y-%m-%d %H:%M:%S")" > "${LOGFILE}" 2>/dev/null || small_die "Could not write to '${LOGFILE}'!"
dump_debugcache
diff --git a/genkernel b/genkernel
index 6db81331..ff79e440 100755
--- a/genkernel
+++ b/genkernel
@@ -4,6 +4,8 @@
PATH="${PATH}:/sbin:/usr/sbin"
GK_V='4.0.0_beta11'
+GK_TIME_START=$(date +%s)
+
TODEBUGCACHE=yes # Until an error occurs or LOGFILE is fully qualified.
small_die() {