Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DPDK MANA CentOS 7 changes #3373

Open
wants to merge 9 commits into
base: mcgov/dpdk-mana-merge
Choose a base branch
from
Next Next commit
kernel_source_installer: fix mirrorlist on centos7
Signed-off-by: Pavel Boldin <pboldin@cloudlinux.com>
  • Loading branch information
paboldin committed Aug 8, 2024
commit 7309b7adf7e5ae5c96124c17573b3429e9750481
9 changes: 9 additions & 0 deletions lisa/transformers/kernel_source_installer.py
Original file line number Diff line number Diff line change
@@ -302,9 +302,18 @@ def _build_code(self, node: Node, code_path: PurePath, kconfig_file: str) -> Non
# set timeout to 2 hours
make.make(arguments="", cwd=code_path, timeout=60 * 60 * 2)

def _fix_mirrorlist_to_vault(self, node: Node) -> None:
node.execute("sed -i '\
s/^mirrorlist=/#mirrorlist=/;\
s/^#baseurl=/baseurl=/;\
/^baseurl=/ s/mirror/vault/\
' /etc/yum.repos.d/CentOS-*.repo", shell=True, sudo=True)

def _install_build_tools(self, node: Node) -> None:
os = node.os
self._log.info("installing build tools")
if isinstance(node.os, Redhat) and node.os.information.version < "8.0.0":
self._fix_mirrorlist_to_vault(node)
if isinstance(os, Redhat):
for package in list(
["elfutils-libelf-devel", "openssl-devel", "dwarves", "bc"]