summaryrefslogtreecommitdiffstats
path: root/mcp
diff options
context:
space:
mode:
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>2018-12-31 20:43:51 +0100
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>2019-01-14 12:23:36 +0000
commit9ca1c4f8c3d5639d46c99b5fa3a9f06b485f0fb7 (patch)
tree19320d0b898edead821797320dd12182b0b8e303 /mcp
parentf7597b8289342a7a2d6616b0b3157b5a09750c55 (diff)
[centos] Update altarch kernel URL
CentOS recently moved its kernel source RPM from the altarch subdir to the same directory x86_64 kernel sources used to reside, so update our script accordinly. Change-Id: I88010eabdfc15d6a79350dface29258cc37c4b95 Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com> (cherry picked from commit 250e40c2e9e9ec99d771b39262aac2bfdcb959c2)
Diffstat (limited to 'mcp')
-rw-r--r--mcp/scripts/lib_jump_deploy.sh8
1 files changed, 2 insertions, 6 deletions
diff --git a/mcp/scripts/lib_jump_deploy.sh b/mcp/scripts/lib_jump_deploy.sh
index 561f2c44c..d8b62fd7c 100644
--- a/mcp/scripts/lib_jump_deploy.sh
+++ b/mcp/scripts/lib_jump_deploy.sh
@@ -48,17 +48,13 @@ function __kernel_modules {
fi
# Best-effort attempt at building a non-maintaned kernel module
- local __baseurl
- local __subdir
+ local __baseurl='http://vault.centos.org/centos'
+ local __subdir='Source/SPackages'
local __uname_r=$(uname -r)
local __uname_m=$(uname -m)
if [ "${__uname_m}" = 'x86_64' ]; then
- __baseurl='http://vault.centos.org/centos'
- __subdir='Source/SPackages'
__srpm="kernel-${__uname_r%.${__uname_m}}.src.rpm"
else
- __baseurl='http://vault.centos.org/altarch'
- __subdir="Source/${__uname_m}/Source/SPackages"
# NOTE: fmt varies across releases (e.g. kernel-alt-4.11.0-44.el7a.src.rpm)
__srpm="kernel-alt-${__uname_r%.${__uname_m}}.src.rpm"
fi