Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/tailscale: don't overwrite tailscaled when using merged bin
@ 2026-03-16 19:57 James Hilliard
  2026-05-20 10:10 ` TIAN Yuanhao
  2026-10-02 20:13 ` Thomas Petazzoni via buildroot
  0 siblings, 2 replies; 4+ messages in thread
From: James Hilliard @ 2026-03-16 19:57 UTC (permalink / raw)
  To: buildroot; +Cc: James Hilliard

When merged bin was enabled in systemd in buildroot commit
a530492cd3e6de7ed5f9406f7573fe7b9061b3d5 the tailscaled package
started overwriting the tailscaled binary with a broken symlink as it
assumed /usr/bin and /usr/sbin were not merged.

To ensure this doesn't happen only apply the symlink when
BR2_ROOTFS_MERGED_BIN is not selected.

Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
---
 package/tailscale/tailscale.mk | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/package/tailscale/tailscale.mk b/package/tailscale/tailscale.mk
index 86039fd4b1..f231022476 100644
--- a/package/tailscale/tailscale.mk
+++ b/package/tailscale/tailscale.mk
@@ -22,10 +22,12 @@ define TAILSCALE_INSTALL_INIT_SYSTEMD
 		$(TARGET_DIR)/usr/lib/systemd/system/tailscaled.service
 endef
 
+ifeq ($(BR2_ROOTFS_MERGED_BIN),)
 define TAILSCALE_INSTALL_SYMLINK
 	ln -f -s ../bin/tailscaled $(TARGET_DIR)/usr/sbin/tailscaled
 endef
 TAILSCALE_POST_INSTALL_TARGET_HOOKS += TAILSCALE_INSTALL_SYMLINK
+endif
 
 define TAILSCALE_LINUX_CONFIG_FIXUPS
 	$(call KCONFIG_ENABLE_OPT,CONFIG_IPV6)
-- 
2.43.0

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-10-02 20:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-16 19:57 [Buildroot] [PATCH 1/1] package/tailscale: don't overwrite tailscaled when using merged bin James Hilliard
2026-05-20 10:10 ` TIAN Yuanhao
2026-08-07  2:10   ` TIAN Yuanhao
2026-10-02 20:13 ` Thomas Petazzoni via buildroot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox