From b08ed87e435629af19134c12b28e0704e7b4ae01 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) --- 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