aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Reisner <d@falconindy.com>2010-01-09 10:52:26 -0500
committerDave Reisner <d@falconindy.com>2010-01-09 10:52:26 -0500
commit5c4673ccc7ccbc8adb0e75dcb24886ea0ce7056d (patch)
tree8b02de8738fa23f40c64bd629e18ee49dd4fbafc
parent90ed9dc29541564a75589ffb746520f7011a0b98 (diff)
downloadsquashfu-5c4673ccc7ccbc8adb0e75dcb24886ea0ce7056d.tar.gz
Force pseudo link flush after rsync runs
-rwxr-xr-xsquashfu5
1 files changed, 5 insertions, 0 deletions
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 () {