Skip to content

Better grub.cfg parsing, to consider conditionals #1499

Description

@marmarek

Is your feature request related to a problem? Please describe.

When AEM package is installed on Qubes OS, the grub.cfg will include extra boot options guarded by if [ -d /aem/ ]; then. So, when it's just package installed but AEM is not initialized, nothing should change. But Heads' parsing of grub.cfg (I guess) doesn't consider this condition and include such boot entries anyway:
https://openqa.qubes-os.org/tests/81744#step/startup/7

Describe the solution you'd like

Ideally grub.cfg should be parsed as real grub would do. But in practice, maybe Heads can support just few condition variants like this one?

Describe alternatives you've considered

Not installing anti-evil-maid package when using Heads.

Additional context

For now (I hope) it affects only some tests, as anti-evil-maid is not installed by default. But some users may try to install it and get confused. And one day maybe AEM is going to be installed by default (not going to happen in short term).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions