Skip to content

Commit

Permalink
Hide error from attempting to "mount --move"
Browse files Browse the repository at this point in the history
(We get a sensible error message if it fails anyway)

Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
  • Loading branch information
lamby committed Aug 14, 2008
1 parent b2f0eaa commit 2c6e690
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/live
Expand Up @@ -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 ()
Expand Down

0 comments on commit 2c6e690

Please sign in to comment.