|
|
|
@ -130,7 +130,7 @@ reduce_pass_size () {
|
|
|
|
|
if ! diff --brief --no-dereference "$pass_dir/$f" "$parent_pass_dir/$f" >/dev/null; then
|
|
|
|
|
continue
|
|
|
|
|
fi
|
|
|
|
|
p=$(dirname $f)
|
|
|
|
|
p="$(dirname "$f")"
|
|
|
|
|
while [ "$p" != . ]; do
|
|
|
|
|
# As explained in the overlayfs documentation
|
|
|
|
|
# https://www.kernel.org/doc/html/latest/filesystems/overlayfs.html#whiteouts-and-opaque-directories
|
|
|
|
@ -147,7 +147,7 @@ reduce_pass_size () {
|
|
|
|
|
Echo_message "reduce_pass_size: '%s' would be removed from overlay but for trusted.overlay.opaque on '%s'" "$f" "$p"
|
|
|
|
|
continue 2
|
|
|
|
|
fi
|
|
|
|
|
p=$(dirname $p)
|
|
|
|
|
p="$(dirname "$p")"
|
|
|
|
|
done
|
|
|
|
|
# Files are strictly identical between the 2 passes (only mod or access times differs). No need for unused delta.
|
|
|
|
|
Echo_message "reduce_pass_size: '%s' is strictly identical between %s and %s. Removing." "$f" "$pass" "$parent"
|
|
|
|
|