mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
armbian-next: extensions changes - MEGASQUASH - squashed changes from c9cf3fc241cfb4c872f4aef7bbc41d5854db7ea3 to 6809de3d6063cb041205a8318e19da6a4dee68c9 ref extensions_08_10_2022_pre_v30
This commit is contained in:
16
extensions/zfs.sh
Normal file
16
extensions/zfs.sh
Normal file
@@ -0,0 +1,16 @@
|
||||
function extension_finish_config__build_zfs_kernel_module() {
|
||||
if [[ "${KERNEL_HAS_WORKING_HEADERS}" != "yes" ]]; then
|
||||
display_alert "Kernel version has no working headers package" "skipping ZFS for kernel v${KERNEL_MAJOR_MINOR}" "warn"
|
||||
return 0
|
||||
fi
|
||||
export INSTALL_HEADERS="yes"
|
||||
display_alert "Forcing INSTALL_HEADERS=yes; for use with ZFS" "${EXTENSION}" "debug"
|
||||
}
|
||||
|
||||
function post_install_kernel_debs__build_zfs_kernel_module() {
|
||||
[[ "${INSTALL_HEADERS}" != "yes" ]] || [[ "${KERNEL_HAS_WORKING_HEADERS}" != "yes" ]] && return 0
|
||||
display_alert "Install ZFS packages, will build kernel module in chroot" "${EXTENSION}" "info"
|
||||
declare -agx if_error_find_files_sdcard=("/var/lib/dkms/zfs/*/build/*.log")
|
||||
# See https://github.com/zfsonlinux/pkg-zfs/issues/69 for a bug with leaking env vars.
|
||||
use_clean_environment="yes" chroot_sdcard_apt_get_install "zfs-dkms zfsutils-linux"
|
||||
}
|
||||
Reference in New Issue
Block a user