mcreboot: load kernel modules from under /tmp

Change-Id: I81a8c451b6dd556a00699a2c8d0c7df5a99e4ea2
This commit is contained in:
Balazs Gerofi
2018-06-20 20:53:00 +09:00
parent 7736e25ca4
commit 653aba17a1

View File

@ -305,6 +305,12 @@ if ! grep -E 'ihk\s' /proc/modules &>/dev/null; then
fi
fi
# Copy modules under /tmp to avoid loading from shared FS
if mkdir -p /tmp/mcos-kmod; then
cp ${KMODDIR}/* /tmp/mcos-kmod/
KMODDIR="/tmp/mcos-kmod/"
fi
# Fujitsu drops caches for us in between jobs so don't do it on OFP
if [ "`hostname | grep "c[0-9][0-9][0-9][0-9].ofp"`" == "" ]; then
# Increase swappiness so that we have better chance to allocate memory for IHK