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 <sp1j3t@gmail.com>
(cherry picked from commit c1b93f5531)
Signed-off-by: Chin-Ya Huang <chin-ya.huang@suse.com>
This commit is contained in:
Serge Tkatchouk 2022-07-29 12:50:59 +08:00 committed by David Ko
parent 8220a6194c
commit fc66ce16d9

View File

@ -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=()