mcreboot: load kernel modules from under /tmp
Change-Id: I81a8c451b6dd556a00699a2c8d0c7df5a99e4ea2
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user