diff options
author | 2019-11-18 03:39:54 +0100 | |
---|---|---|
committer | 2019-11-19 16:56:31 +0100 | |
commit | 5a006b7cf7b4c4e853e1f3b1c63724073e37bd44 (patch) | |
tree | c6107b55562b4d313d993089ddc13aa429e333c8 /gen_determineargs.sh | |
parent | gen_determineargs.sh: determine_real_args(): Quote $KERNEL_DIR (diff) | |
download | genkernel-5a006b7cf7b4c4e853e1f3b1c63724073e37bd44.tar.gz genkernel-5a006b7cf7b4c4e853e1f3b1c63724073e37bd44.tar.bz2 genkernel-5a006b7cf7b4c4e853e1f3b1c63724073e37bd44.zip |
gen_determineargs.sh: determine_real_args(): Check for `realpath -m` support
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
Diffstat (limited to 'gen_determineargs.sh')
-rwxr-xr-x | gen_determineargs.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gen_determineargs.sh b/gen_determineargs.sh index e8a81545..9233c42e 100755 --- a/gen_determineargs.sh +++ b/gen_determineargs.sh @@ -256,6 +256,17 @@ determine_real_args() { done unset tc_var tc_varname_build tc_vars + if ! hash realpath &>/dev/null + then + gen_die "realpath not found. Is sys-apps/coreutils installed?" + fi + + realpath -m / &>/dev/null + if [ $? -ne 0 ] + then + gen_die "'realpath -m /' failed. We need a realpath version which supports '-m' mode!" + fi + print_info 4 "Resolving config file, command line, and arch default settings." # Dest / Config File Command Line Arch Default |