From 3e20b9d0153f64dfc9f820209c4181b6caa26e7e Mon Sep 17 00:00:00 2001 From: Gilles Coremans Date: Mon, 13 Jul 2026 16:17:40 +0200 Subject: [PATCH] Fix rsync trying to copy SELinux xattrs and spamming the log SELinux contexts are stored as xattrs, but users are not allowed to set SELinux contexts. Thus, when rsync tries to do this, it produces one log message per file being copied, which ends up being one log message per file under node_modules; which completely spams your log which is very annoying. This fixes that by just telling rsync to ignore those xattrs. Fix as per https://unix.stackexchange.com/a/648651 --- helpers.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/helpers.sh b/helpers.sh index b5c2e7b..9ea11b5 100644 --- a/helpers.sh +++ b/helpers.sh @@ -15,5 +15,6 @@ function docker-rsync() { # --numeric-ids: use uuid by number instead of by name # --info: silent output # --no-compress: no compression algorithm - rsync -aHAWXS --numeric-ids --info= --no-compress "$@" + # --filer='-x security.selinux': don't try to copy SELinux xattrs since this just results in spamming the log with errors + rsync -aHAWXS --numeric-ids --info= --no-compress --filter='-x security.selinux' "$@" }