From 3afab2d909ff44a91bfe382cf1f9ed55122245d4 Mon Sep 17 00:00:00 2001 From: sefidel Date: Sat, 15 Jun 2024 11:27:45 +0900 Subject: fix(modules/tailscale-initrd): fix binary paths Breaking change introduced on https://github.com/NixOS/nixpkgs/commit/ccf4d0c623495168171bee72f511d7e56b4cdc84 --- modules/tailscale-initrd.nix | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'modules') diff --git a/modules/tailscale-initrd.nix b/modules/tailscale-initrd.nix index 4b7610e..4429d60 100644 --- a/modules/tailscale-initrd.nix +++ b/modules/tailscale-initrd.nix @@ -53,10 +53,10 @@ echo 'nameserver 8.8.8.8' > /etc/resolv.conf mkdir /dev/net mknod /dev/net/tun c 10 200 - .tailscaled-wrapped 2>/dev/null & + tailscaled 2>/dev/null & sleep 5 - .tailscale-wrapped up - .tailscale-wrapped status + tailscale up + tailscale status echo "echo 'Use cryptsetup-askpass to unlock!'" >> /root/.profile ''; @@ -81,8 +81,8 @@ "xt_tcpudp" ]; extraUtilsCommands = '' - copy_bin_and_libs ${pkgs.tailscale}/bin/.tailscaled-wrapped - copy_bin_and_libs ${pkgs.tailscale}/bin/.tailscale-wrapped + copy_bin_and_libs ${pkgs.tailscale}/bin/tailscaled + copy_bin_and_libs ${pkgs.tailscale}/bin/tailscale copy_bin_and_libs ${pkgs.iproute}/bin/ip copy_bin_and_libs ${iptables-static}/bin/iptables copy_bin_and_libs ${iptables-static}/bin/xtables-legacy-multi @@ -91,8 +91,8 @@ ''; postMountCommands = '' # tear down tailscale - pkill .tailscaled-wrapped - .tailscaled-wrapped --cleanup + pkill tailscaled + tailscaled --cleanup ''; }; }; -- cgit 1.4.1