[Buildroot] [PATCH 1/1] package/tailscale: install service files

TIAN Yuanhao tianyuanhao3 at 163.com
Sat Apr 12 09:14:26 UTC 2025


Hi Yann,At 2025-04-11 22:56:49, yann.morin at orange.com wrote:
>Yuanhao, All,
>
>On 2025-04-11 04:37 -0700, TIAN Yuanhao spake thusly:
>> Install tailscaled to /usr/sbin, as the service file references that
>> location.
>> 
>> Signed-off-by: TIAN Yuanhao <tianyuanhao3 at 163.com>
>> Cc: James Hilliard <james.hilliard1 at gmail.com>
>> ---
>[--SNIP--]
>> +define TAILSCALE_INSTALL_TARGET_CMDS
>> +	$(INSTALL) -D -m 0755 $(@D)/bin/tailscale \
>> +		$(TARGET_DIR)/usr/bin/tailscale
>> +	$(INSTALL) -D -m 0755 $(@D)/bin/tailscaled \
>> +		$(TARGET_DIR)/usr/sbin/tailscaled
>> +endef
>
>I would suggest that, rather than override the default _CMDS, you
>provide a post-install hook that does a symlink in sbin.

How about creating this symbolic link in TAILSCALE_INSTALL_INIT_***?


>
>> +define TAILSCALE_INSTALL_INIT_OPENRC
>[--SNIP--]
>> +define TAILSCALE_INSTALL_INIT_SYSTEMD
>[--SNIP--]
>

>What about TAILSCALE_INSTALL_INIT_SYSV ?


The upstream repository does not provide a sysv init script, and I am not familiar with sysv init either.


>
>Regards,
>Yann E. MORIN.
>

Regards,
TIAN Yuanhao
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.buildroot.org/pipermail/buildroot/attachments/20250412/7c0d2924/attachment.htm>


More information about the buildroot mailing list