Skip to content

Cannot disambiguate between multiple questions with the same name #7

@lwfitzgerald

Description

@lwfitzgerald

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:

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):

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions