diff --git a/arch/x86_64/tools/mcreboot-smp-x86.sh.in b/arch/x86_64/tools/mcreboot-smp-x86.sh.in index 55bb71e8..5d2940e1 100644 --- a/arch/x86_64/tools/mcreboot-smp-x86.sh.in +++ b/arch/x86_64/tools/mcreboot-smp-x86.sh.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