Skip to content

Commit

Permalink
Try to bind /cow to /live/cow if unable to move.
Browse files Browse the repository at this point in the history
* This should re-enable using of live-snapshot with targets differents
  from static list cpio's.

Signed-off-by: Marco Amadori <amadorim@vdavda.com>
  • Loading branch information
Marco Amadori committed Jun 13, 2008
1 parent bd33088 commit e3a6c79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/live
Expand Up @@ -1173,7 +1173,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 move /cow "${rootmnt}/live/cow" || mount -o bind /cow "${rootmnt}/live/cow" || [ "${quiet}" != "y" ] && log_warning_msg "Unable to move or bind /cow to ${rootmnt}/live/cow"
}

check_dev ()
Expand Down

0 comments on commit e3a6c79

Please sign in to comment.