LTSP update kernel module

# on client: download driver
# Intel ixgbe (10G NIC)
wget https://downloadmirror.intel.com/14687/eng/ixgbe-4.4.6.tar.gz -qP /tmp
 
# Intel e1000e (1G NIC)
wget https://downloadmirror.intel.com/15817/eng/e1000e-3.3.4.tar.gz -qP /tmp
tar xzf /tmp/e1000e-3.3.4.tar.gz -C /tmp/
 
# install required packages
apt-get install build-essential linux-headers-$(uname -r)
 
# on client: compile
cd /tmp/e1000e-3.3.4/src/
make
 
# copy /tmp/e1000e-3.3.4/src/e1000e.ko to LTSP server
 
# debug on server
# make install
# rmmod e1000e
# modprobe e1000e
# update-initramfs -u
 
 
# backup original e1000e kernel module
mv /opt/ltsp/amd64/lib/modules/3.13.0-100-generic/kernel/drivers/net/ethernet/intel/e1000e/e1000e.ko /opt/ltsp/amd64/lib/modules/3.13.0-100-generic/kernel/drivers/net/ethernet/intel/e1000e/e1000e.ko.$(date -I)
 
# install new kernel module
cp /tmp/e1000e-3.3.4/src/e1000e.ko /opt/ltsp/amd64/lib/modules/3.13.0-100-generic/kernel/drivers/net/ethernet/intel/e1000e/e1000e.ko
 
# disable update for kernel package and update initramfs
export LTSP_HANDLE_DAEMONS=false
ltsp-chroot -p -a amd64 /bin/bash -c "apt-mark hold linux-image-generic linux-headers-generic && update-initramfs -u"
 
# update image
ltsp-update-image