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

Document the Jsonnet example #655

Merged
merged 3 commits into from
Jul 10, 2023
Merged

Document the Jsonnet example #655

merged 3 commits into from
Jul 10, 2023

Conversation

imobachgs
Copy link
Contributor

Add some comments to the Jsonnet-based example.

@imobachgs imobachgs changed the title Document the jsonnet example Document the J+sonnet example Jul 10, 2023
@imobachgs imobachgs changed the title Document the J+sonnet example Document the Jsonnet example Jul 10, 2023
@coveralls
Copy link

coveralls commented Jul 10, 2023

Coverage Status

coverage: 72.432%. remained the same when pulling 01c8038 on comment-jsonnet-example into b4bf25f on master.

// This is a Jsonnet file. Please, check https://jsonnet.org/ for more
// information about the language.

// The hw.libsonnet file contains hardware information from the "lshw" tool.
Copy link
Contributor

Choose a reason for hiding this comment

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

On Leap 15.4 at least, lshw.rpm or jsonnet.rpm do not contain a hw.libsonnet file. Where do I find it or how do I know what API it provides?

imobachgs and others added 2 commits July 10, 2023 15:38
Co-authored-by: Martin Vidner <mvidner@suse.cz>
Copy link
Contributor

@mvidner mvidner left a comment

Choose a reason for hiding this comment

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

Thanks!

lshw makes sense now, it contains the data about the current system. Somehow I tricked myself into thinking that it contained jsonnet code.

@imobachgs imobachgs merged commit bfcd28d into master Jul 10, 2023
14 checks passed
@imobachgs imobachgs deleted the comment-jsonnet-example branch July 10, 2023 15:18
// https://github.com/openSUSE/agama/blob/master/rust/agama-lib/share/profile.schema.json

// The "hw.libsonnet" file contains hardware information of the storage devices
// from the "lshw" tool. It is generated by running as root:
Copy link
Contributor

Choose a reason for hiding this comment

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

I think the most important information is that it is explicitly run by Agama itself, there is no magic for that.
https://github.com/openSUSE/agama/blob/b4bf25fdffd46735800a8396f1715fffe181e1db/rust/agama-lib/src/profile.rs#L128

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I merged too soon. I opened #655.

@imobachgs imobachgs mentioned this pull request Jul 10, 2023
@imobachgs imobachgs mentioned this pull request Aug 2, 2023
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