26-install-zfs-only-when-needed #27
7
setup.sh
7
setup.sh
@ -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'
|
||||||
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}"
|
printf -- "${reset_colors}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user