Skip to content

Commit

Permalink
mkinitcpio-tailscale v1.0-1 (#148)
Browse files Browse the repository at this point in the history
  • Loading branch information
mortyr45 authored Nov 1, 2024
1 parent 912cc69 commit 6468447
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
1 change: 1 addition & 0 deletions packages/mkinitcpio-tailscale/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.pkg.tar.zst
6 changes: 3 additions & 3 deletions packages/mkinitcpio-tailscale/PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Maintainer: Daniel Graña <dangra at gmail dot com>

pkgname=mkinitcpio-tailscale
pkgver=0.4
pkgver=1.0
pkgrel=1
pkgdesc="mkinitcpio hook to launch Tailscale on systemd or busybox based initramfs"
arch=("any")
Expand All @@ -11,8 +11,8 @@ depends=("mkinitcpio")
source=("initcpio-hooks-tailscale"
"initcpio-install-tailscale"
"setup-initcpio-tailscale")
sha256sums=('55177e12c2292665ca86a9235d17e61f7ad080d2ed236e7de60be048116d2f15'
'60ebfa2d0a557d0b951a3a3cec01023acbb24feb55c986561e5c8e94bec1a77f'
sha256sums=('ce5df937e08ee7791921aad719413640aca445083694b2f526008a8ad53d4155'
'e16ffdc2ab0f46ff66f2fe09ed0d20193075ae6395451728bcece842fe02228d'
'e6cf49ea9ac359d21665444c2a3ab009aedb52d215e47287ecff7d6d4159d4c2')

package() {
Expand Down
2 changes: 1 addition & 1 deletion packages/mkinitcpio-tailscale/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ For busybox based initramfs, it is recommended to place it after any network rel

The Tailscale daemon can run a builtin SSH server, if enabled, installing _dropbear_ or _tinyssh_ isn't required to access the node remotely.

To enable it pass `--ssh` option like in: `setup-initcpio-tailscale -- --ssh`
To enable it pass `--ssh` option like in: `setup-initcpio-tailscale --ssh`

The main difference of the builtin SSH server to something like _dropbear_ or _tinyssh_ is that the former is only accessible over the tailnet,
the node won't respond to local connections unless the client is also connected to the tailscale network. It is a good thing though.
Expand Down
3 changes: 3 additions & 0 deletions packages/mkinitcpio-tailscale/initcpio-hooks-tailscale
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ run_hook() (
echo "Starting Tailscale"
. /etc/default/tailscaled

mkdir /dev/pts
mount -t devpts none /dev/pts

# Launch tailscale agent in the background
/usr/sbin/tailscaled --cleanup
/usr/sbin/tailscaled \
Expand Down
2 changes: 1 addition & 1 deletion packages/mkinitcpio-tailscale/initcpio-install-tailscale
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ build() {
add_module tun
add_full_dir /usr/lib/xtables
add_all_modules netfilter
map add_binary iptables ip6tables tailscale tailscaled
map add_binary getent iptables ip6tables tailscale tailscaled

if [[ $(type -t add_systemd_unit ) == function ]]; then
add_systemd_unit tailscaled.service
Expand Down

0 comments on commit 6468447

Please sign in to comment.