rhboot / efibootmgr

efibootmgr development tree
GNU General Public License v2.0
505 stars 96 forks source link

Python library or JSON output #70

Open bdrung opened 7 years ago

bdrung commented 7 years ago

I wrote an installer script in Python. This script should also manage the boot settings and needs following features:

To avoid having to write a efibootmgr output parser (which might break in newer efibootmgr versions), please provide a Python library that I can use or add a parameter to print the information in a machine-parsable way (e.g. as JSON).

MrM40 commented 5 years ago

I too would like to see an JSON output option :-) I would prefer a program-language independent solution: efibootmgr output directly to JSON. I'm not using Python (altough I guess I should, but that's another storry :-P)

frozencemetery commented 2 years ago

We're not currently interested in maintaining a python library. JSON, while perhaps marginally easier to parse, isn't a guarantee that nothing will change. Our output has not changed much over time regardless.

Patches to somehow make output more parser-friendly would be considered, if there's anything to be done there. I'm not against JSON, but it doesn't help me at all.

lupoDharkael commented 6 months ago

Any news related to this feature? I would be very handy to have this implemented to make interoperability with programs easier to handle.