-
Notifications
You must be signed in to change notification settings - Fork 179
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
Conversation
target = f"/boot/initrd.img-{current_kernel}" | ||
link = f"/boot/initrd.img-{new_kernel}" | ||
|
||
if distro == "Microsoft Azure Linux 3.0": |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure Chi
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
0d8f522
to
1eb9a15
Compare
@@ -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}") |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
3c5d717
to
2a65aca
Compare
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]>
2a65aca
to
ab32653
Compare
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]>
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.