diff options
author | Damian Szuberski <[email protected]> | 2022-02-24 19:33:48 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2022-02-24 10:33:48 -0800 |
commit | e25bcf906a425892a834f08157683e709a307a14 (patch) | |
tree | 96de1e94fe00696d0696a1d4799ee2bd29843806 /scripts | |
parent | 78fad47cb30c428f1f1b5a6373b94aa6e8ef24fa (diff) |
Fix directory detection in `dkms.mkconf`
Fix `zfs-dkms` installation on Debian-derived distributions by
aligning the directory detection logic to #13096.
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: szubersk <[email protected]>
Closes #11449
Closes #13141
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/dkms.mkconf | 22 |
1 files changed, 7 insertions, 15 deletions
diff --git a/scripts/dkms.mkconf b/scripts/dkms.mkconf index ebe38e319..4090efa08 100755 --- a/scripts/dkms.mkconf +++ b/scripts/dkms.mkconf @@ -29,22 +29,14 @@ PRE_BUILD="configure --prefix=/usr --with-config=kernel --with-linux=\$( - case \`lsb_release -is\` in - (Debian|Devuan) - if [[ -e \${kernel_source_dir/%build/source} ]] - then - echo \${kernel_source_dir/%build/source} - else - # A kpkg exception for Proxmox 2.0 - echo \${kernel_source_dir} - fi - ;; - (*) - echo \${kernel_source_dir} - ;; - esac + if [ -e "\${kernel_source_dir/%build/source}" ] + then + echo "\${kernel_source_dir/%build/source}" + else + echo "\${kernel_source_dir}" + fi ) - --with-linux-obj=\${kernel_source_dir} + --with-linux-obj="\${kernel_source_dir}" \$( [[ -n \"\${ICP_ROOT}\" ]] && \\ { |