From 5c4673ccc7ccbc8adb0e75dcb24886ea0ce7056d Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Sat, 9 Jan 2010 10:52:26 -0500 Subject: Force pseudo link flush after rsync runs --- squashfu | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/squashfu b/squashfu index de5c5ef..b6c7cb2 100755 --- a/squashfu +++ b/squashfu @@ -181,6 +181,11 @@ run_rsync() { debug " Includes: ${INCLUDES[@]}" debug " Excludes: ${EXCLUDES[@]}" rsync ${RSYNC_OPTS[@]} ${INCLUDES[@]} ${EXCLUDES[@]} ${BKUP_ROOT}/rw + + # Force flush of pseudo links on branches to ensure clean dismount + # Our umount.aufs helper can do this for us, but it doesn't handle + # rsync hangups very well. + auplink "${BKUP_ROOT}/rw" flush } save_old_tree () { -- cgit v1.2.3