summaryrefslogtreecommitdiffstats
path: root/fuel-plugin/build_kvm.sh
diff options
context:
space:
mode:
authordavidjchou <david.j.chou@intel.com>2016-08-11 12:22:01 -0700
committerdavidjchou <david.j.chou@intel.com>2016-08-12 07:24:22 -0700
commitc149674b4725b5d9bcdab22c180ef8ecba033523 (patch)
tree790f6b349cec4180e7f6470a91d6c328f28681db /fuel-plugin/build_kvm.sh
parent1f0befb721c82e39c4839a552b3933f417317e00 (diff)
Build kernel in another directory and README.md update for fuel-plugin
1. Since some files generated during kernel building are only root writeable, this will cause "permission denied" issue in "make clean" in fuel@opnfv iso building which uses normal user priviledge. Building kernel in another directory than the directory mapped into Docker container can resolve the issue. 2. Update and typing error correction for README.md Upstream status - NA Change-Id: Icdd1a12d38f90619dd91588cb9e0f5b9bdfe95d1 Signed-off-by: davidjchou <david.j.chou@intel.com>
Diffstat (limited to 'fuel-plugin/build_kvm.sh')
-rwxr-xr-xfuel-plugin/build_kvm.sh10
1 files changed, 9 insertions, 1 deletions
diff --git a/fuel-plugin/build_kvm.sh b/fuel-plugin/build_kvm.sh
index 9984f3bab..befadd95f 100755
--- a/fuel-plugin/build_kvm.sh
+++ b/fuel-plugin/build_kvm.sh
@@ -1,6 +1,6 @@
#!/bin/bash
-SRC=/
+SRC=/root
CONFIG="arch/x86/configs/opnfv.config"
VERSION="1.0.OPNFV"
OVS_COMMIT="4ff6642f3c1dd8949c2f42b3310ee2523ee970a6"
@@ -22,6 +22,11 @@ done
apt-get update
apt-get install -y git fakeroot build-essential ncurses-dev xz-utils kernel-package bc autoconf automake libtool python python-pip
+#
+# Build kernel in another directory, so some files (which are root writeable only) generated during kernel
+# building wouldn't remain in the source directory mapped into Docker container
+#
+cp -r /kvmfornfv $SRC/.
cd $SRC
# Get the Open VSwitch sources
@@ -68,3 +73,6 @@ depmod -b ovs.$$ -a `ls ovs.$$/lib/modules`
dpkg-deb -b ovs.$$ $SRC/kvmfornfv/linux-image*.deb
rm -rf ovs.$$
+cp $SRC/kvmfornfv/linux-headers*.deb /kvmfornfv/.
+cp $SRC/kvmfornfv/linux-image*.deb /kvmfornfv/.
+