Public bug reported: When running efi-readvar with no parameters, I get this error:
No efivarfs filesystem is mounted This tool is totally broken for me and I cannot use it. Yet, mount -l shows that it is mounted: <snip> efivarfs on /sys/firmware/efi/efivars type efivarfs (rw,nosuid,nodev,noexec,relatime) <snip> It appears that this is a known bug with efitools: https://bugs.gentoo.org/show_bug.cgi?id=511728 And a patch made for it here: https://bugs.gentoo.org/attachment.cgi?id=377792&action=diff I am running Ubuntu 15.10. Version of package installed is 1.4.2+git20140118-0ubuntu1. Please consider, at minimum, getting this patch into Xenial and ideally into Wily? --- a/lib/kernel_efivars.c +++ a/lib/kernel_efivars.c @@ -66,10 +66,10 @@ kernel_variable_init(void) while (ptr < buf + st.st_size) { int count; - sscanf(ptr, "%*s on %s type %s %*s\n%n", path, type, &count); + sscanf(ptr, "%*s on %s type %s %*[^\n]\n%n", path, type, &count); ptr += count; - if (strcmp(type, "efivarfs") != 0) - continue; + if (strcmp(type, "efivarfs") == 0) + break; } if (strcmp(type, "efivarfs") != 0) { fprintf(stderr, "No efivarfs filesystem is mounted\n"); ** Affects: efitools (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1551074 Title: "No efivarfs filesystem is mounted" error when running efi-readvar To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/efitools/+bug/1551074/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
