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

Add support for mariner-3.0 in dom0 kernel installer #3522

Merged
merged 1 commit into from
Nov 22, 2024

Conversation

smit-gardhariya
Copy link
Collaborator

dom0 image based on mariner 3.0 has different
parameter that need to be changed while installing kernel under different file. Add support for it under kernel installer transformer.

target = f"/boot/initrd.img-{current_kernel}"
link = f"/boot/initrd.img-{new_kernel}"

if distro == "Microsoft Azure Linux 3.0":
Copy link
Member

Choose a reason for hiding this comment

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

Check it by isinstance(node.os, Mariner) and the node.os.information.version. Not use the string.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Sure Chi

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done

@smit-gardhariya smit-gardhariya force-pushed the sgardhariya/fix_dom0_kernel_installer branch from 0d8f522 to 1eb9a15 Compare November 21, 2024 05:05
@@ -80,6 +81,9 @@ def install(self) -> str:
uname = node.tools[Uname]
current_kernel = uname.get_linux_information().kernel_version_raw

mariner_version = node.os.information.version
print(f"mariner_version: {mariner_version}")
Copy link
Member

Choose a reason for hiding this comment

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

Don't use print in code. The version number should be in debug information already, it doesn't need to be printed again.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It was just temporary print. I removed it in last push.

@smit-gardhariya smit-gardhariya force-pushed the sgardhariya/fix_dom0_kernel_installer branch 3 times, most recently from 3c5d717 to 2a65aca Compare November 21, 2024 06:22
dom0 image based on mariner 3.0 has different
parameter that need to be changed while installing kernel
under different file. Add support for it under kernel
installer transformer.

Signed-off-by: Smit Gardhariya <[email protected]>
@smit-gardhariya smit-gardhariya force-pushed the sgardhariya/fix_dom0_kernel_installer branch from 2a65aca to ab32653 Compare November 21, 2024 07:32
@pupacha pupacha merged commit 53e2945 into main Nov 22, 2024
45 checks passed
@pupacha pupacha deleted the sgardhariya/fix_dom0_kernel_installer branch November 22, 2024 05:03
@smit-gardhariya smit-gardhariya restored the sgardhariya/fix_dom0_kernel_installer branch November 22, 2024 08:03
SRIKKANTH pushed a commit that referenced this pull request Nov 23, 2024
dom0 image based on mariner 3.0 has different
parameter that need to be changed while installing kernel
under different file. Add support for it under kernel
installer transformer.

Signed-off-by: Smit Gardhariya <[email protected]>
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.

4 participants