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