fix zfs module
This commit is contained in:
parent
5e534700c5
commit
c0288c6838
2 changed files with 3 additions and 9 deletions
|
@ -2,6 +2,7 @@
|
||||||
sudo apt install devscripts rsync -y
|
sudo apt install devscripts rsync -y
|
||||||
yes | sudo mk-build-deps --install --remove
|
yes | sudo mk-build-deps --install --remove
|
||||||
git submodule update --init --depth=1
|
git submodule update --init --depth=1
|
||||||
|
rm build -rf
|
||||||
mkdir build && rsync -ra * build/
|
mkdir build && rsync -ra * build/
|
||||||
cd build
|
cd build
|
||||||
dpkg-buildpackage -b -us -uc
|
dpkg-buildpackage -b -us -uc
|
||||||
|
|
11
debian/rules
vendored
11
debian/rules
vendored
|
@ -105,15 +105,8 @@ debian/${PVE_KERNEL_PKG}.%: debian/templates/pve-kernel.%.in
|
||||||
|
|
||||||
# install zfs drivers
|
# install zfs drivers
|
||||||
install -d -m 0755 debian/${PVE_KERNEL_PKG}/lib/modules/${KVNAME}/zfs
|
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/zfs.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/spl.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
|
|
||||||
# remove firmware
|
# remove firmware
|
||||||
rm -rf debian/${PVE_KERNEL_PKG}/lib/firmware
|
rm -rf debian/${PVE_KERNEL_PKG}/lib/firmware
|
||||||
# strip debug info
|
# strip debug info
|
||||||
|
|
Loading…
Reference in a new issue