Skip to content

anti-evil-maid-install assumes BIOS/Legacy when selecting a removable media to install to #78

@hack-char

Description

@hack-char

Affected component(s) or functionality
/usr/sbin/anti-evil-maid-install

Brief summary
No detection or checking for UEFI vs. BIOS/Legacy boot modes. When choosing to install to removable media, the script assumes BIOS only.

Version
anti-evil-maid-4.2.1-1.fc37.x86_64.rpm

To Reproduce
Steps to reproduce the behavior:_

  1. Install Qubes OS with UEFI boot
  2. Perform steps from https://trenchboot.org/user-docs/install_aem/
  3. When running anti-evil-maid-install choose a removable media block device
  4. Script tries to execute grub2-install --boot-directory="$PART_MNT" "$WHOLE_DEV" and fails since there is only UEFI.

Expected behavior
Detect UEFI boot and warn can not install on removable media. Develop a method to copy EFI and boot from removable media.

Actual behavior
Get the error grub2-install: error: this utility cannot be used for EFI platforms because it does not support UEFI Secure Boot.

Screenshots
N/A

Additional context
N/A

Solutions you've tried
Laptop only has UEFI boot. Plan to copy EFI partition to removable media and attempt manual installation.

Relevant documentation you've consulted
https://trenchboot.org/user-docs/install_aem/

Related, non-duplicate issues
none

Metadata

Metadata

Assignees

No one assigned

    Labels

    P: defaultPriority: default. Default priority for new issues, to be replaced given sufficient information.T: bugType: bug report. A problem or defect resulting in unintended behavior.W: todoWorkflow: todo. The issue is in the initial to do state.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions