From 2c6e69026447446109008a22753a749c3a0ad38e Mon Sep 17 00:00:00 2001 From: Chris Lamb Date: Thu, 14 Aug 2008 01:19:28 +0100 Subject: [PATCH] Hide error from attempting to "mount --move" (We get a sensible error message if it fails anyway) Signed-off-by: Chris Lamb --- scripts/live | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/live b/scripts/live index 7bd673b..caaf45b 100755 --- a/scripts/live +++ b/scripts/live @@ -1210,7 +1210,7 @@ setup_unionfs () # shows cow fs on /cow for use by live-snapshot mkdir -p "${rootmnt}/live/cow" - mount -o move /cow "${rootmnt}/live/cow" || mount -o bind /cow "${rootmnt}/live/cow" || log_warning_msg "Unable to move or bind /cow to ${rootmnt}/live/cow" + mount -o move /cow "${rootmnt}/live/cow" >/dev/null 2>&1 || mount -o bind /cow "${rootmnt}/live/cow" || log_warning_msg "Unable to move or bind /cow to ${rootmnt}/live/cow" } check_dev () -- 2.1.4