[Buildroot] [PATCH 06/40] package/ebtables: preserve /usr/sbin symlink
James Hilliard
james.hilliard1 at gmail.com
Wed May 6 22:33:07 UTC 2026
With BR2_ROOTFS_MERGED_BIN=y, /usr/sbin is a symlink to bin.
Using install -D for files below $(TARGET_DIR)/usr/sbin can create
the parent directory path and replace that symlink with a real
directory.
With per-package directories, this can later make rsync fail when a
package target directory contains a non-empty usr/sbin directory and
the skeleton provides usr/sbin -> bin.
The skeleton dependency has already created /usr/sbin, either as a
directory or as the merged-bin symlink, so use plain install and let it
follow the existing path.
Signed-off-by: James Hilliard <james.hilliard1 at gmail.com>
---
package/ebtables/ebtables.mk | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/package/ebtables/ebtables.mk b/package/ebtables/ebtables.mk
index 09a9f4ba7d..42edfde557 100644
--- a/package/ebtables/ebtables.mk
+++ b/package/ebtables/ebtables.mk
@@ -13,7 +13,7 @@ EBTABLES_SELINUX_MODULES = iptables
ifeq ($(BR2_PACKAGE_EBTABLES_UTILS_SAVE),y)
define EBTABLES_INSTALL_TARGET_UTILS_SAVE
- $(INSTALL) -m 0755 -D $(@D)/ebtables-save.sh $(TARGET_DIR)/usr/sbin/ebtables-legacy-save
+ $(INSTALL) -m 0755 $(@D)/ebtables-save.sh $(TARGET_DIR)/usr/sbin/ebtables-legacy-save
endef
EBTABLES_POST_INSTALL_TARGET_HOOKS += EBTABLES_INSTALL_TARGET_UTILS_SAVE
else
--
2.53.0
More information about the buildroot
mailing list