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

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



On Thu, Oct 02, 2014 at 01:51:25AM +0100, Ben Hutchings wrote:
>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?

Doh, yes!

Cut and paste error, didn't show up in testing due to the belt and
braces effect I mentioned earlier...

Thanks!

-- 
Steve McIntyre, Cambridge, UK.                                steve@einval.com
"You can't barbecue lettuce!" -- Ellie Crane


Reply to: