datasone / setup_var.efi

UEFI command-line tool for read/write access of variables
Apache License 2.0
221 stars 8 forks source link

With multiple varstores named "Setup", using -i to select the variable ID has no effect #4

Closed terminatorul closed 1 year ago

terminatorul commented 1 year ago

I have Gigaybte X470 AORUS GAMING 5 WiFi F63c, which has two variables named Setup.

setup_var.efi lists both of them and asks to rerun with the variable ID for selecting one of the two variables

But when I re-run with -i option, the exact same thing happens again (option -i has no effect)

datasone commented 1 year ago

Can you try this version and see if it works? I think it's due to a silly bug in argument parsing... setup_var_issue4_1.zip

terminatorul commented 1 year ago

Yes, it worked now and it read my byte ! I was trying to enable ReBAR option, which IFR shows is at offset 0x275 in my UEFI "Setup" variable, and setup_var.efi shows var_id 0x1 as the larger (valid) varstore.

The initial output line you included also showed the right value "var_id: Some(1)" from my comman line.

datasone commented 1 year ago

Fixed in 0.1.1. Thanks for the report!