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

Changing the kernel package name for sles distro kernel_src build #860

Merged
merged 1 commit into from
Sep 2, 2024

Conversation

Naresh-ibm
Copy link
Contributor

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.

@Naresh-ibm
Copy link
Contributor Author

@@ -2316,7 +2316,7 @@ 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/"
s_cmd = f"zypper -n source-install kernel-source;cd /usr/src/packages/SOURCES/;./mkspec;cp {package}.spec ../SPECS/"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As this is utility, have this is a generic, overwrite the value from the caller

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Naresh-ibm we need the package value (kernel-default) in rest of the places as is.
And kernel-source is needed at the time of installation itself. So just changed this place only and rest it will be kernel-default which is needed

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]>
@PraveenPenguin PraveenPenguin merged commit 2b4912f into open-power:master Sep 2, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants