Commit e0fb4115 authored by Igor Pecovnik's avatar Igor Pecovnik
Browse files

Add ZFS install

parent b71327d3
...@@ -1132,6 +1132,14 @@ function jobs () ...@@ -1132,6 +1132,14 @@ function jobs ()
fi fi
;; ;;
"ZFS")
if ! is_package_manager_running; then
if ! check_if_installed zfs-dkms ; then
debconf-apt-progress -- apt-get -y install zfs-dkms dkms python3-distutils python3-lib2to3 zfsutils-linux
fi
fi
;;
# Edit boot environment # Edit boot environment
# #
......
...@@ -82,6 +82,11 @@ while true; do ...@@ -82,6 +82,11 @@ while true; do
[[ -z ${mark} ]] && [[ -f /etc/apt/sources.list.d/armbian.list ]] && LIST+=( "Other" "Switch to other kernels" ) [[ -z ${mark} ]] && [[ -f /etc/apt/sources.list.d/armbian.list ]] && LIST+=( "Other" "Switch to other kernels" )
LIST+=( "SSH" "Reconfigure SSH daemon" ) LIST+=( "SSH" "Reconfigure SSH daemon" )
zpoolstatus="$(zpool status </dev/stdin 2>&1 )"
testvercomp "$(uname -r | sed 's/-.*//')" "3.10.0" ">"
kernelok=$?
[[ -z $(echo $zpoolstatus | grep 'not loaded') && $kernelok == 0 && "$(dpkg --print-architecture)" != "armhf" ]] && LIST+=( "ZFS" "Enable ZFS support" )
LIST+=( "Firmware" "Run apt update & apt upgrade" ) LIST+=( "Firmware" "Run apt update & apt upgrade" )
if [[ "$SHELL" != "/bin/bash" ]]; then if [[ "$SHELL" != "/bin/bash" ]]; then
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment