From 47b09e2f0463f6a5ea8cc8e127b012a0cf1ec4af Mon Sep 17 00:00:00 2001 From: Tommi Virtanen Date: Tue, 6 Sep 2011 13:25:00 -0700 Subject: [PATCH] mkcephfs: cosd and cmon setup must happen as root. Without this, they cannot e.g. write to /var/log, or probably even to their data directories. Signed-off-by: Tommi Virtanen --- src/mkcephfs.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mkcephfs.in b/src/mkcephfs.in index d4d5092bf9386..fa43155c17338 100644 --- a/src/mkcephfs.in +++ b/src/mkcephfs.in @@ -437,7 +437,7 @@ if [ $allhosts -eq 1 ]; then do_root_cmd "$0 -d $rdir --prepare-osdfs $name" fi - do_cmd "$0 -d $rdir --init-daemon $name" + do_root_cmd "$0 -d $rdir --init-daemon $name" # collect the key if [ -n "$ssh" ]; then @@ -468,7 +468,7 @@ if [ $allhosts -eq 1 ]; then rdir=$dir fi - do_cmd "$0 -d $rdir --init-daemon $name" + do_root_cmd "$0 -d $rdir --init-daemon $name" done # admin keyring -- 2.39.5