aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Reisner <d@falconindy.com>2016-08-21 10:56:10 -0400
committerGitHub <noreply@github.com>2016-08-21 10:56:10 -0400
commitd63c21a99a7d658a3f23845bf03b5f2147c67d5b (patch)
treef5fa9bd30d158f1b4c1e9551f1c8710fe6712ce6
parent8248834aa0e56499073b8883c1b909d699c5e69e (diff)
parentd1684d80f9729f3da6906629244d9f5e9e6be86c (diff)
downloadsquashfu-d63c21a99a7d658a3f23845bf03b5f2147c67d5b.tar.gz
Merge pull request #3 from gnpar/fix_resquash
Fix information loss on voluntary resquash
-rwxr-xr-xsquashfu1
1 files changed, 1 insertions, 0 deletions
diff --git a/squashfu b/squashfu
index 20b2951..b923fca 100755
--- a/squashfu
+++ b/squashfu
@@ -42,6 +42,7 @@ create_new_squash () {
# Determine oldest $1 bins and mount them with the current squash
local old_bins=($(sort -n -r -t: -k2 "$BINVENTORY" | tail -$1 | cut -d: -f1))
+ mountpoint -q "$SQUASH_MOUNT" || mount_squash
mount_union_with_bins ${old_bins[@]}
info "Merging old incrementals"