diff options
author | Thomas Deutschmann <whissi@gentoo.org> | 2020-08-01 15:43:13 +0200 |
---|---|---|
committer | Thomas Deutschmann <whissi@gentoo.org> | 2020-08-01 22:34:59 +0200 |
commit | 0a29fabd3246599c3b5884440c3dfa8afac0c277 (patch) | |
tree | c6d01eda1eeea159fddcfa5b1dd1a9881b6fc893 /gen_determineargs.sh | |
parent | gen_initramfs.sh: create_initramfs(): set_initramfs_compression_method() must... (diff) | |
download | genkernel-0a29fabd3246599c3b5884440c3dfa8afac0c277.tar.gz genkernel-0a29fabd3246599c3b5884440c3dfa8afac0c277.tar.bz2 genkernel-0a29fabd3246599c3b5884440c3dfa8afac0c277.zip |
genkernel: Move grep/zgrep check to determine_real_args()
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
Diffstat (limited to 'gen_determineargs.sh')
-rwxr-xr-x | gen_determineargs.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/gen_determineargs.sh b/gen_determineargs.sh index d145d165..d8f30286 100755 --- a/gen_determineargs.sh +++ b/gen_determineargs.sh @@ -279,6 +279,20 @@ determine_real_args() { gen_die "'realpath -m /' failed. We need a realpath version which supports '-m' mode!" fi + if hash grep &>/dev/null + then + GREP_CMD=grep + else + gen_die "grep not found. Is sys-apps/grep installed?" + fi + + if hash zgrep &>/dev/null + then + ZGREP_CMD=zgrep + else + print_warning 1 "zgrep not found. Is app-arch/gzip installed? You will be unable to use compressed config files!" + fi + print_info 4 "Resolving config file, command line, and arch default settings." # Dest / Config File Command Line Arch Default |