From: Chris Lamb Date: Thu, 14 Aug 2008 00:19:28 +0000 (+0100) Subject: Hide error from attempting to "mount --move" X-Git-Tag: debian/2.0.15-1~459 X-Git-Url: http://git.grml.org/?a=commitdiff_plain;h=b08ed87e435629af19134c12b28e0704e7b4ae01;p=live-boot-grml.git Hide error from attempting to "mount --move" (We get a sensible error message if it fails anyway) --- 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 ()