[PATCH] lib: fwts_uefi: fixed the newer inteface never be used
Keng-Yu Lin
kengyu at canonical.com
Thu Mar 7 05:42:25 UTC 2013
On Fri, Mar 1, 2013 at 3:51 PM, Ivan Hu <ivan.hu at canonical.com> wrote:
> The new interface efivars for UEFI variable should alway be find first.
>
> Signed-off-by: Ivan Hu <ivan.hu at canonical.com>
> ---
> src/lib/src/fwts_uefi.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/lib/src/fwts_uefi.c b/src/lib/src/fwts_uefi.c
> index 53fa810..9118ea4 100644
> --- a/src/lib/src/fwts_uefi.c
> +++ b/src/lib/src/fwts_uefi.c
> @@ -96,7 +96,7 @@ static int fwts_uefi_get_interface(char **path)
>
> if (fscanf(fp, "%*s %4095s %1023s", mount, fstype) == 2) {
> /* Always try to find the newer interface first */
> - if (!strcmp(fstype, "efivars")) {
> + if (!strcmp(fstype, "efivarfs")) {
> strcpy(efivar_path, mount);
> break;
> }
> --
> 1.7.10.4
>
Acked-by: Keng-Yu Lin <kengyu at canonical.com>
More information about the fwts-devel
mailing list