Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding a safeguard for UEFI/legacy config switch #163

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Commits on Aug 6, 2024

  1. Add helper function is_rootfs_uefi()

    This function searches for the /boot/efi mount point in the /etc/fstab
    file of the mount point directory passed as parameter and returns True
    if present, False otherwise.
    
    This will allow to check that an existing installation or backup boot
    mode matches with the installer boot mode.
    
    Signed-off-by: Thierry Escande <[email protected]>
    tescande committed Aug 6, 2024
    Configuration menu
    Copy the full SHA
    68e09fd View commit details
    Browse the repository at this point in the history
  2. Ignore backup if boot modes don't match

    This patch checks the boot mode of an existing backups and disallows its
    restoration if it differs from the installer one. This uses the new
    helper function is_rootf_uefi().
    
    Signed-off-by: Thierry Escande <[email protected]>
    tescande committed Aug 6, 2024
    Configuration menu
    Copy the full SHA
    9b52514 View commit details
    Browse the repository at this point in the history
  3. Ignore existing installation for upgrade if boot modes don't match

    This patch checks that the current installation is not proposed as
    upgradeable if its boot mode differs from the installer one. This uses
    the helper function is_rootfs_uefi().
    
    Signed-off-by: Thierry Escande <[email protected]>
    tescande committed Aug 6, 2024
    Configuration menu
    Copy the full SHA
    8b47e8f View commit details
    Browse the repository at this point in the history