mirror of
https://github.com/kneutron/ansitest.git
synced 2025-01-30 05:02:54 +08:00
Update fix-zfs-compile.sh
This commit is contained in:
parent
041e863758
commit
b6a2261c48
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user