Gentoo Archives: gentoo-commits

From: Thomas Deutschmann <whissi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/genkernel:master commit in: /
Date: Wed, 09 Oct 2019 17:01:47
Message-Id: 1570640334.f5e265631ec86909edbbd712947af1f5c933e789.whissi@gentoo
commit:     f5e265631ec86909edbbd712947af1f5c933e789
Author:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
AuthorDate: Wed Oct  9 16:58:54 2019 +0000
Commit:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
CommitDate: Wed Oct  9 16:58:54 2019 +0000
URL:        https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=f5e26563

gen_funcs.sh: check_disk_space_requirements(): Fix error message

Fixes 467c2e82 ("Add feature to check for free disk space early at genkernel start")
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>

 gen_funcs.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gen_funcs.sh b/gen_funcs.sh
index 0e7c5ba..8a8c490 100755
--- a/gen_funcs.sh
+++ b/gen_funcs.sh
@@ -1720,7 +1720,7 @@ check_disk_space_requirements() {
 			available_free_disk_space=${available_free_disk_space%M}
 			if [ ${available_free_disk_space} -lt ${CHECK_FREE_DISK_SPACE_KERNELOUTPUTDIR} ]
 			then
-				gen_die "${CHECK_FREE_DISK_SPACE_KERNELOUTPUTDIR} MB free disk space is required in '${BOOTDIR}' but only ${available_free_disk_space} MB is available!"
+				gen_die "${CHECK_FREE_DISK_SPACE_KERNELOUTPUTDIR} MB free disk space is required in '${KERNEL_OUTPUTDIR}' but only ${available_free_disk_space} MB is available!"
 			fi
 		else
 			print_warning 1 "Invalid df value; Skipping free disk space check for '${KERNEL_OUTPUTDIR}' ..."