[PATCH] lib: fwts_uefi: fixed the newer inteface never be used

Ivan Hu ivan.hu at canonical.com
Fri Mar 1 07:51:20 UTC 2013


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




More information about the fwts-devel mailing list