[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#763127: UEFI corner case - installer booted in UEFI mode, existing system in BIOS mode - PLEASE REVIEW



On Thu, 2014-10-02 at 00:29 +0100, Steve McIntyre wrote:
> From: Steve McIntyre <steve@einval.com>
> Date: Thu, 2 Oct 2014 00:01:28 +0100
> Subject: [PATCH] Recognise the new ignore_uefi flag from partman-efi
[...]
> --- a/src/system/efi.c
> +++ b/src/system/efi.c
> @@ -28,7 +28,14 @@ int di_system_is_efi(void)
>  {
>         int ret = access("/sys/firmware/efi", R_OK);
>         if (ret == 0)
> -               return 1;
> +       {
> +               /* Have we been told to ignore EFI in partman-efi? */
> +               ret = access("/var/lib/partman/ignore_uefi", R_OK);
> +               if (ret == 0)
> +                       return 1;

Should be return 0?

> +               else
> +                       return 1;
[...]

Ben.

-- 
Ben Hutchings
Everything should be made as simple as possible, but not simpler.
                                                           - Albert Einstein

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: