summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
Diffstat (limited to 'build')
-rw-r--r--build/build_perf_image.sh2
-rw-r--r--build/opnfv-apex-common.spec5
-rwxr-xr-xbuild/overcloud-full.sh8
-rw-r--r--build/setkernelparam.sh27
4 files changed, 2 insertions, 40 deletions
diff --git a/build/build_perf_image.sh b/build/build_perf_image.sh
index 0a3e3d0f..6ca9fbf8 100644
--- a/build/build_perf_image.sh
+++ b/build/build_perf_image.sh
@@ -32,7 +32,7 @@ fi
if [ "$CATEGORY" == "kernel" ]; then
LIBGUESTFS_BACKEND=direct virt-customize \
- --run-command "bash -x /root/setkernelparam.sh $KEY $VALUE" \
+ --run-command "grubby --update-kernel=ALL --args=$KEY=$VALUE" \
-a $IMAGE
fi
diff --git a/build/opnfv-apex-common.spec b/build/opnfv-apex-common.spec
index 302216a8..6067c7e0 100644
--- a/build/opnfv-apex-common.spec
+++ b/build/opnfv-apex-common.spec
@@ -48,10 +48,7 @@ install lib/common-functions.sh %{buildroot}%{_var}/opt/opnfv/lib/
install lib/utility-functions.sh %{buildroot}%{_var}/opt/opnfv/lib/
install lib/python/apex-python-utils.py %{buildroot}%{_var}/opt/opnfv/lib/python/
mkdir -p %{buildroot}%{python3_sitelib}/apex/
-install lib/python/apex/__init__.py %{buildroot}%{python3_sitelib}/apex/
-install lib/python/apex/ip_utils.py %{buildroot}%{python3_sitelib}/apex/
-install lib/python/apex/net_env.py %{buildroot}%{python3_sitelib}/apex/
-install lib/python/apex/deploy_env.py %{buildroot}%{python3_sitelib}/apex/
+install lib/python/apex/ %{buildroot}%{python3_sitelib}/apex/
mkdir -p %{buildroot}%{_var}/opt/opnfv/lib/installer/onos/
install lib/installer/onos/onos_gw_mac_update.sh %{buildroot}%{_var}/opt/opnfv/lib/installer/onos/
diff --git a/build/overcloud-full.sh b/build/overcloud-full.sh
index d0ee3f01..065201f8 100755
--- a/build/overcloud-full.sh
+++ b/build/overcloud-full.sh
@@ -29,13 +29,5 @@ LIBGUESTFS_BACKEND=direct virt-customize \
--run-command "echo 'nf_conntrack_proto_sctp' > /etc/modules-load.d/nf_conntrack_proto_sctp.conf" \
-a overcloud-full_build.qcow2
-###################################
-##### Add CPU pinning script #####
-###################################
-
-LIBGUESTFS_BACKEND=direct virt-customize \
- --upload ../setkernelparam.sh:/root \
- -a overcloud-full_build.qcow2
-
mv -f overcloud-full_build.qcow2 overcloud-full.qcow2
popd > /dev/null
diff --git a/build/setkernelparam.sh b/build/setkernelparam.sh
deleted file mode 100644
index b6986d6c..00000000
--- a/build/setkernelparam.sh
+++ /dev/null
@@ -1,27 +0,0 @@
-#!/bin/bash
-
-##############################################################################
-# Copyright (c) 2016 Red Hat Inc.
-# Michael Chapman <michapma@redhat.com>
-# All rights reserved. This program and the accompanying materials
-# are made available under the terms of the Apache License, Version 2.0
-# which accompanies this distribution, and is available at
-# http://www.apache.org/licenses/LICENSE-2.0
-##############################################################################
-
-GRUBCONF='/boot/grub2/grub.conf'
-
-if [ "$1" == "" ]; then
- echo "No kernel parameter name provided, not modifying grub.conf"
- exit 1
-fi
-
-if [ "$2" == "" ]; then
- echo "No kernel parameter value provided, not modifying grub.conf"
- exit 1
-fi
-
-echo "Setting $1=$2 in $GRUBCONF"
-echo "GRUB_CMDLINE_LINUX=\"\$GRUB_CMDLINE_LINUX $1=$2\"" >> /etc/default/grub
-grub2-mkconfig > $GRUBCONF
-exit 0