From be05d9dc5e3f3a3c962d5ba7559a9b9e7cd6b40b Mon Sep 17 00:00:00 2001 From: Karel Striegel Date: Tue, 3 Feb 2015 11:42:06 +0100 Subject: [PATCH] rdb: update init-rbdmap to fix duplicate mount point According to the manual 'mount -f' adds an entry in /etc/mtab. Therefore the 'mount -v' command needs the flag -n to avoid duplicate entries in /etc/mtab. Signed-off-by: Karel Striegel --- src/init-rbdmap | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/init-rbdmap b/src/init-rbdmap index a4e986318ef..a9d682681f4 100755 --- a/src/init-rbdmap +++ b/src/init-rbdmap @@ -67,7 +67,7 @@ do_map() { ## Mount new rbd MNT_RV="" mount --fake /dev/rbd/$DEV >>/dev/null 2>&1 \ - && MNT_RV=$(mount -v /dev/rbd/$DEV 2>&1) + && MNT_RV=$(mount -vn /dev/rbd/$DEV 2>&1) [ -n "${MNT_RV}" ] && log_action_msg "mount: ${MNT_RV}" ## post-mapping