mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-11-17 01:51:00 +03:00
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 <behlendorf1@llnl.gov> Signed-off-by: szubersk <szuberskidamian@gmail.com> Closes #11449 Closes #13141
This commit is contained in:
parent
78fad47cb3
commit
e25bcf906a
@ -29,22 +29,14 @@ PRE_BUILD="configure
|
|||||||
--prefix=/usr
|
--prefix=/usr
|
||||||
--with-config=kernel
|
--with-config=kernel
|
||||||
--with-linux=\$(
|
--with-linux=\$(
|
||||||
case \`lsb_release -is\` in
|
if [ -e "\${kernel_source_dir/%build/source}" ]
|
||||||
(Debian|Devuan)
|
then
|
||||||
if [[ -e \${kernel_source_dir/%build/source} ]]
|
echo "\${kernel_source_dir/%build/source}"
|
||||||
then
|
else
|
||||||
echo \${kernel_source_dir/%build/source}
|
echo "\${kernel_source_dir}"
|
||||||
else
|
fi
|
||||||
# A kpkg exception for Proxmox 2.0
|
|
||||||
echo \${kernel_source_dir}
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
(*)
|
|
||||||
echo \${kernel_source_dir}
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
)
|
)
|
||||||
--with-linux-obj=\${kernel_source_dir}
|
--with-linux-obj="\${kernel_source_dir}"
|
||||||
\$(
|
\$(
|
||||||
[[ -n \"\${ICP_ROOT}\" ]] && \\
|
[[ -n \"\${ICP_ROOT}\" ]] && \\
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user