diff --git a/setup.sh b/setup.sh index 955ce5e..7cd7172 100644 --- a/setup.sh +++ b/setup.sh @@ -451,7 +451,12 @@ function install_pkgs () { function install_zfs () { #1.6 declare reset_colors='\033[0m' - curl -s 'https://raw.githubusercontent.com/eoli3n/archiso-zfs/master/init' | bash + if modinfo 'zfs' &>/dev/null; then + >&3 printf -- '%s\n' \ + 'ZFS kernel module is loaded, no need to install ...' + else + curl -s 'https://raw.githubusercontent.com/eoli3n/archiso-zfs/master/init' | bash + fi printf -- "${reset_colors}" }