26-install-zfs-only-when-needed #27

Merged
hygienic-books merged 5 commits from 26-install-zfs-only-when-needed into main 2025-01-17 20:11:11 +00:00
Showing only changes of commit 1036ce9c5b - Show all commits

View File

@ -451,7 +451,12 @@ function install_pkgs () {
function install_zfs () { function install_zfs () {
#1.6 #1.6
declare reset_colors='\033[0m' declare reset_colors='\033[0m'
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 curl -s 'https://raw.githubusercontent.com/eoli3n/archiso-zfs/master/init' | bash
fi
printf -- "${reset_colors}" printf -- "${reset_colors}"
} }