Update fix-zfs-compile.sh

This commit is contained in:
kneutron 2022-04-11 10:58:46 -05:00 committed by GitHub
parent 041e863758
commit b6a2261c48
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,10 +1,13 @@
#!/bin/bash
# arg1=kernel ver
cd /usr/src/linux-headers-$1-common/include/linux
td=$PWD
# REF: https://github.com/openzfs/zfs/issues/9935
# Fix compile issues on Debian
cd /usr/src/linux-headers-$1-amd64/include
ln -sfn $td .
# arg1=kernel ver e.g. 4.19.9
cd /usr/src/linux-headers-$1-common/include/linux
td=$PWD; [ "$td" = "" ] && exit 404;
cd /usr/src/linux-headers-$1-amd64/include && \
ln -sfn $td .
ls -alh