From fc66ce16d97635f5e01f59a115b0c5781faab7f7 Mon Sep 17 00:00:00 2001 From: Serge Tkatchouk Date: Fri, 29 Jul 2022 12:50:59 +0800 Subject: [PATCH] Add Gentoo support to environment_check.sh This addition will allow Gentoo users to run this script and get sensible error messages in case they forgot to install required packages. Signed-off-by: Serge Tkatchouk (cherry picked from commit c1b93f5531958e583be5a1375b56db48cc52127e) Signed-off-by: Chin-Ya Huang --- scripts/environment_check.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/environment_check.sh b/scripts/environment_check.sh index a11718b..b146011 100755 --- a/scripts/environment_check.sh +++ b/scripts/environment_check.sh @@ -97,6 +97,10 @@ set_packages_and_check_cmd() CHECK_CMD='pacman -Q' PACKAGES=(nfs-utils open-iscsi) ;; + *"gentoo"* ) + CHECK_CMD='qlist -I' + PACKAGES=(net-fs/nfs-utils sys-block/open-iscsi) + ;; *) CHECK_CMD='' PACKAGES=()