From c0288c68388ff73736b8aa4d2736d2fe8b99519e Mon Sep 17 00:00:00 2001 From: jiangcuo Date: Tue, 31 Oct 2023 23:30:03 +0800 Subject: [PATCH] fix zfs module --- autobuild.sh | 1 + debian/rules | 11 ++--------- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/autobuild.sh b/autobuild.sh index 96d9300..c953794 100644 --- a/autobuild.sh +++ b/autobuild.sh @@ -2,6 +2,7 @@ sudo apt install devscripts rsync -y yes | sudo mk-build-deps --install --remove git submodule update --init --depth=1 +rm build -rf mkdir build && rsync -ra * build/ cd build dpkg-buildpackage -b -us -uc diff --git a/debian/rules b/debian/rules index 01c0a9b..39d060f 100755 --- a/debian/rules +++ b/debian/rules @@ -105,15 +105,8 @@ debian/${PVE_KERNEL_PKG}.%: debian/templates/pve-kernel.%.in # install zfs drivers install -d -m 0755 debian/${PVE_KERNEL_PKG}/lib/modules/${KVNAME}/zfs - install -m 644 ${ZFS_SRC}/module/avl/zavl.ko debian/${PVE_KERNEL_PKG}/lib/modules/${KVNAME}/zfs - install -m 644 ${ZFS_SRC}/module/nvpair/znvpair.ko debian/${PVE_KERNEL_PKG}/lib/modules/${KVNAME}/zfs - install -m 644 ${ZFS_SRC}/module/unicode/zunicode.ko debian/${PVE_KERNEL_PKG}/lib/modules/${KVNAME}/zfs - install -m 644 ${ZFS_SRC}/module/zcommon/zcommon.ko debian/${PVE_KERNEL_PKG}/lib/modules/${KVNAME}/zfs - install -m 644 ${ZFS_SRC}/module/icp/icp.ko debian/${PVE_KERNEL_PKG}/lib/modules/${KVNAME}/zfs - install -m 644 ${ZFS_SRC}/module/zfs/zfs.ko debian/${PVE_KERNEL_PKG}/lib/modules/${KVNAME}/zfs - install -m 644 ${ZFS_SRC}/module/lua/zlua.ko debian/${PVE_KERNEL_PKG}/lib/modules/${KVNAME}/zfs - install -m 644 ${ZFS_SRC}/module/spl/spl.ko debian/${PVE_KERNEL_PKG}/lib/modules/${KVNAME}/zfs - install -m 644 ${ZFS_SRC}/module/zstd/zzstd.ko debian/${PVE_KERNEL_PKG}/lib/modules/${KVNAME}/zfs + install -m 644 ${ZFS_SRC}/module/zfs.ko debian/${PVE_KERNEL_PKG}/lib/modules/${KVNAME}/zfs + install -m 644 ${ZFS_SRC}/module/spl.ko debian/${PVE_KERNEL_PKG}/lib/modules/${KVNAME}/zfs # remove firmware rm -rf debian/${PVE_KERNEL_PKG}/lib/firmware # strip debug info