diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/includes/chroot.inc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/core/includes/chroot.inc b/core/includes/chroot.inc index 87167fa2..d5a404c5 100644 --- a/core/includes/chroot.inc +++ b/core/includes/chroot.inc @@ -164,14 +164,13 @@ chroot_handle_whiteouts() { local WHITEOUT_LIST="${CHROOT_UPPERDIR}/overlay.whiteout.list" rm -f -- "$WHITEOUT_LIST" mkdir -p "$(dirname "$WHITEOUT_LIST")" || perror "Could not create $(dirname "$WHITEOUT_LIST")" - touch "$WHITEOUT_LIST" || perror "Could not touch whiteout list $WHITEOUT_LIST" pdebug "Searching for overlayfs-whiteouts ..." for WHITEOUT in $(find "$CHROOT_UPPERDIR" \( -type c -perm 0000 \) -o -lname "(overlay-whiteout)"); do pdebug "Whiteout found: $WHITEOUT" echo "/./${WHITEOUT#$CHROOT_UPPERDIR}" >> "$WHITEOUT_LIST" rm -f -- "$WHITEOUT" || perror "Could not delete whiteout $WHITEOUT!" done - pinfo "Whiteout list dumped to '${CHROOT_UPPERDIR}/overlay.whiteout.list'" + [ -s "$WHITEOUT_LIST" ] && pinfo "Whiteout list dumped to '${CHROOT_UPPERDIR}/overlay.whiteout.list'" } ############################################################################### |