mirror of https://github.com/dynup/kpatch
14 lines
390 B
Plaintext
14 lines
390 B
Plaintext
|
#!/bin/bash
|
||
|
|
||
|
set -o errexit
|
||
|
|
||
|
sudo modprobe nfsd
|
||
|
sleep 5
|
||
|
grep -q kpatch /proc/fs/nfs/exports
|
||
|
|
||
|
# TODO: This will trigger a printk on newer kernels which have the .klp.arch
|
||
|
# removal. Don't actually do the grep until running on a newer kernel.
|
||
|
echo "file fs/nfsd/export.c +p" > /sys/kernel/debug/dynamic_debug/control
|
||
|
cat /proc/fs/nfs/exports > /dev/null
|
||
|
# dmesg | grep -q "kpatch: pr_debug"
|