aboutsummaryrefslogtreecommitdiffstats
path: root/squashfu
diff options
context:
space:
mode:
authorGabriel <g.parrondo@gmail.com>2016-08-21 11:29:01 -0300
committerGabriel <g.parrondo@gmail.com>2016-08-21 11:29:01 -0300
commitd1684d80f9729f3da6906629244d9f5e9e6be86c (patch)
treef5fa9bd30d158f1b4c1e9551f1c8710fe6712ce6 /squashfu
parent8248834aa0e56499073b8883c1b909d699c5e69e (diff)
downloadsquashfu-d1684d80f9729f3da6906629244d9f5e9e6be86c.tar.gz
Fix information loss on voluntary resquash
Diffstat (limited to 'squashfu')
-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"