From 85dffaacfa3c7eedc8fc8ea12da27a19720e2483 Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Tue, 9 May 2017 07:38:34 +0200 Subject: fs: Create automount entries for the default mount pathes In barebox the default mount path for a cdev is /mnt/ which can be mounted with "mount " without specifying a target path explicitly. Simplify this further by creating automount entries for the default mount pathes which makes a manual mount completely unnecessary. Signed-off-by: Sascha Hauer --- common/block.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'common/block.c') diff --git a/common/block.c b/common/block.c index 0edc8619ef..e2ba9d4296 100644 --- a/common/block.c +++ b/common/block.c @@ -374,6 +374,8 @@ int blockdevice_register(struct block_device *blk) list_add_tail(&blk->list, &block_device_list); + cdev_create_default_automount(&blk->cdev); + return 0; } -- cgit v1.2.3