Skip to content

Document the Jsonnet example#655

Merged
imobachgs merged 3 commits intomasterfrom
comment-jsonnet-example
Jul 10, 2023
Merged

Document the Jsonnet example#655
imobachgs merged 3 commits intomasterfrom
comment-jsonnet-example

Conversation

@imobachgs
Copy link
Copy Markdown
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
Copy Markdown

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
Copy Markdown
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
Copy Markdown
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
@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
Copy Markdown
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
Copy Markdown
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