linuxboot / linuxboot/uefisettings

Cannot disambiguate between multiple questions with the same name

Open
#7 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Rust
Stars
95
Forks
13
PR merge metrics
No merged PRs in 30d

Description

Hi,

I'm trying to use `uefisettings` to flip the `Multi-VC` (Enable/Disable Multiple Virtual Channel) option in my UEFI's settings, but because this option is present for each PCI-e root port (up to 3), the question appears three times with an identical name:

```bash
sudo ./uefisettings hii list-questions | grep -B 1 -A7 'Multi-VC'
```
```
Question {
name: "Multi-VC",
answer: "Enabled",
options: [
"Disabled",
"Enabled",
],
help: "Enable/Disable Multi Virtual Channel",
},
--
Question {
name: "Multi-VC",
answer: "Disabled",
options: [
"Disabled",
"Enabled",
],
help: "Enable/Disable Multi Virtual Channel",
},
--
Question {
name: "Multi-VC",
answer: "Disabled",
options: [
"Disabled",
"Enabled",
],
help: "Enable/Disable Multi Virtual Channel",
},
```

When I try to use `uefisettings hii get`, only the first question is returned (note only the first is `Enabled`):

```bash
sudo ./uefisettings hii get 'Multi-VC'
```
```
GetResponseList {
responses: [
GetResponse {
selector: "899407D7-99FE-43D8-9A21-79EC328CAC21",
backend: Backend::Hii,
question: Question {
name: "Multi-VC",
answer: "Enabled",
options: [
"Disabled",
"Enabled",
],
help: "Enable/Disable Multi Virtual Channel",
},
is_translated: false,
},
],
}
```

Is there any way to select the question to get/set more granularly such that I can choose the other questions?

Thanks in advance,
Luke

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the `hii get` and corresponding set command handling shown in the issue, then trace how questions are matched by name. Define a selector that distinguishes duplicate `Multi-VC` questions, and consider the work complete when each duplicate can be independently retrieved and updated.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.