[PATCH] efivars: Make efivarfs autoloading on mount request

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

 



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 <JBottomley@xxxxxxxxxxxxx>

---

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 <Matt_Domsch@xxxxxxxx>");
 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 majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux