Code Review
/
kvmfornfv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
This patch contains the scripts to remove hardcoded kernel version,
[kvmfornfv.git]
/
ci
/
envs
/
host-setup0.sh
diff --git
a/ci/envs/host-setup0.sh
b/ci/envs/host-setup0.sh
index
28c49b8
..
0778aae
100755
(executable)
--- a/
ci/envs/host-setup0.sh
+++ b/
ci/envs/host-setup0.sh
@@
-9,10
+9,16
@@
## http://www.apache.org/licenses/LICENSE-2.0
###############################################################################
## http://www.apache.org/licenses/LICENSE-2.0
###############################################################################
+source utils.sh
source host-config
source host-config
+KERNEL_VERSION=$( getKernelVersion )
+if [ -z $KERNEL_VERSION ];then
+ echo "Kernel RPM not found"
+ exit 1
+fi
rpmdir=${1:-"/root/workspace/rpm/"}
rpmdir=${1:-"/root/workspace/rpm/"}
-rpmpat="kernel-
4.4
*.rpm"
+rpmpat="kernel-
${KERNEL_VERSION}
*.rpm"
config_grub () {
key=$1
config_grub () {
key=$1