ansitest/ZFS/fix-zfs-compile.sh

14 lines
287 B
Bash
Raw Normal View History

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