Currently you can't mount efivarfs unless the efivar module is already
inserted.  This is contrary to the usual way in linux, where we autoload
the necessary filesystem modules when a mount request is received.  The
reason this doesn't happen for efivarfs is because the module is called
efivars not efivarfs.  Fix this by adding a module alias for efivarfs.

Signed-off-by: James Bottomley <[email protected]>

---

diff --git a/drivers/firmware/efivars.c b/drivers/firmware/efivars.c
index f5596db..62386a0 100644
--- a/drivers/firmware/efivars.c
+++ b/drivers/firmware/efivars.c
@@ -93,6 +93,7 @@ MODULE_AUTHOR("Matt Domsch <[email protected]>");
 MODULE_DESCRIPTION("sysfs interface to EFI Variables");
 MODULE_LICENSE("GPL");
 MODULE_VERSION(EFIVARS_VERSION);
+MODULE_ALIAS("efivarfs");      /* we export the efivarfs filesystem */
 
 #define DUMP_NAME_LEN 52
 

--
To unsubscribe from this list: send the line "unsubscribe linux-efi" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to