Code Review
/
kvmfornfv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Merge "Match the config from ubuntu"
[kvmfornfv.git]
/
fuel-plugin
/
build_kvm.sh
diff --git
a/fuel-plugin/build_kvm.sh
b/fuel-plugin/build_kvm.sh
index
9984f3b
..
3fc80df
100755
(executable)
--- a/
fuel-plugin/build_kvm.sh
+++ b/
fuel-plugin/build_kvm.sh
@@
-1,6
+1,6
@@
#!/bin/bash
#!/bin/bash
-SRC=/
+SRC=/
root
CONFIG="arch/x86/configs/opnfv.config"
VERSION="1.0.OPNFV"
OVS_COMMIT="4ff6642f3c1dd8949c2f42b3310ee2523ee970a6"
CONFIG="arch/x86/configs/opnfv.config"
VERSION="1.0.OPNFV"
OVS_COMMIT="4ff6642f3c1dd8949c2f42b3310ee2523ee970a6"
@@
-20,8
+20,13
@@
done
}
apt-get update
}
apt-get update
-apt-get install -y git fakeroot build-essential ncurses-dev xz-utils kernel-package bc autoconf automake libtool python python-pip
+apt-get install -y git fakeroot build-essential ncurses-dev xz-utils kernel-package bc autoconf automake libtool python python-pip
libssl-dev
+#
+# 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
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.$$
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/.
+