Skip to content

Commit

Permalink
Changing the kernel package name for sles distro kernel_src build
Browse files Browse the repository at this point in the history
Sles uses the different package name for kernel src. earlier we used
kernel-default. But the package names are like kernel-source.
Again fot build it uses kernel-default only but for install
it uses kernel-source. So just changing it to kernel-source.

Signed-off-by: Naresh Bannoth <[email protected]>
  • Loading branch information
Naresh-ibm committed Aug 28, 2024
1 parent e197972 commit d2b4cdf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion common/OpTestUtil.py
Original file line number Diff line number Diff line change
Expand Up @@ -2316,7 +2316,10 @@ def get_distro_src(self, package, dest_path, build_option=None, pack_dir=None):

elif self.distro_name() == 'sles':
host.host_run_command("zypper install -y rpm-build")
s_cmd = f"zypper -n source-install {package};cd /usr/src/packages/SOURCES/;./mkspec;cp {package}.spec ../SPECS/"
if package.startswith("kernel"):
s_cmd = f"zypper -n source-install kernel-source;cd /usr/src/packages/SOURCES/;./mkspec;cp {package}.spec ../SPECS/"
else:
s_cmd = f"zypper -n source-install {package};cd /usr/src/packages/SOURCES/;./mkspec;cp {package}.spec ../SPECS/"
if host.host_run_command(s_cmd):

spec_path = f"/usr/src/packages/SPECS/{package}.spec"
Expand Down

0 comments on commit d2b4cdf

Please sign in to comment.