From f97f4b6571d1297973f08b9f921778e0b2e7f064 Mon Sep 17 00:00:00 2001 From: Uwe Kleine-König Date: Fri, 7 Feb 2014 22:28:12 +0100 Subject: mount: support filesystem options passed via -o MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Similar to mount(8) the barebox command mount now supports passing a string to the file system driver via -o. This is used in the next commit to let the user specify port numbers for nfs mounts. Signed-off-by: Uwe Kleine-König Signed-off-by: Sascha Hauer --- common/startup.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'common/startup.c') diff --git a/common/startup.c b/common/startup.c index e8b9ea0216..0b5fe46adb 100644 --- a/common/startup.c +++ b/common/startup.c @@ -89,9 +89,9 @@ device_initcall(register_default_env); #if defined CONFIG_FS_RAMFS && defined CONFIG_FS_DEVFS static int mount_root(void) { - mount("none", "ramfs", "/"); + mount("none", "ramfs", "/", NULL); mkdir("/dev", 0); - mount("none", "devfs", "/dev"); + mount("none", "devfs", "/dev", NULL); return 0; } fs_initcall(mount_root); -- cgit v1.2.3