tailscale / tailscale

The easiest, most secure way to use WireGuard and 2FA.
https://tailscale.com
BSD 3-Clause "New" or "Revised" License
17.78k stars 1.37k forks source link

FR: Add support for CoreOS #7409

Open JayWStapleton opened 1 year ago

JayWStapleton commented 1 year ago

What are you trying to do?

Install on CoreOS detects as Fedora, and tries to use .dnf which is not available.

[admin@CoreOS ~]$ curl -sSL https://tailscale.com/install.sh |sh
Installing Tailscale for fedora , using method dnf
+ sudo dnf config-manager --add-repo https://pkgs.tailscale.com/stable/fedora//tailscale.repo
sudo: dnf: command not found
[admin@CoreOS ~]$ cat /etc/os-release 
NAME="Fedora Linux"
VERSION="37.20230205.3.0 (CoreOS)"
ID=fedora
VERSION_ID=37
VERSION_CODENAME=""
PLATFORM_ID="platform:f37"
PRETTY_NAME="Fedora CoreOS 37.20230205.3.0"
ANSI_COLOR="0;38;2;60;110;180"
LOGO=fedora-logo-icon
CPE_NAME="cpe:/o:fedoraproject:fedora:37"
HOME_URL="https://getfedora.org/coreos/"
DOCUMENTATION_URL="https://docs.fedoraproject.org/en-US/fedora-coreos/"
SUPPORT_URL="https://github.com/coreos/fedora-coreos-tracker/"
BUG_REPORT_URL="https://github.com/coreos/fedora-coreos-tracker/"
REDHAT_BUGZILLA_PRODUCT="Fedora"
REDHAT_BUGZILLA_PRODUCT_VERSION=37
REDHAT_SUPPORT_PRODUCT="Fedora"
REDHAT_SUPPORT_PRODUCT_VERSION=37
SUPPORT_END=2023-11-14
VARIANT="CoreOS"
VARIANT_ID=coreos
OSTREE_VERSION='37.20230205.3.0'

How should we solve this?

Customer reported their process to get it working:

I was able to install Tailscale on Fedora CoreOS using the following modifications 
to the steps listed on the Fedora installation page 
(here: https://tailscale.com/kb/1050/install-fedora/):

1: wget https://pkgs.tailscale.com/stable/fedora/tailscale.repo -O /etc/yum.repos.d/tailscale.repo
rpm-ostree install tailscale

The remaining steps were unchanged.

I figured this might be good to add to an entry for Fedora CoreOS, and to fix the installation script 
to not assume `dnf` is available if /etc/os-release is `fedora`.

What is the impact of not solving this?

No automated install on Fedora CoreOS

Anything else?

No response

DentonGentry commented 1 year ago

This platform will be a bit harder than most: CoreOS uses rpm-ostree as its package manager, which installer.sh does not currently support. We'll have to develop the install handling for it.

scottAnselmo commented 1 year ago

Just for impact clarity, this issue isn't limited to CoreOS; I can confirm the issue of no rpm-ostree support impacts Fedora Silverblue and Fedora Kinoite. Presumably it also impacts Fedora Sericea and Fedora Onyx.

Triage solution would be to more formally document the rpm-ostree install steps to manually install w/o the install.sh in the kb and the download page:

sudo wget https://pkgs.tailscale.com/stable/fedora/tailscale.repo -O /etc/yum.repos.d/tailscale.repo
rpm-ostree install tailscale
systemctl reboot
sudo systemctl enable --now tailscaled
sudo tailscale up
sohrob commented 4 months ago

Would love to see either a Flatpak edition of Tailscale or a way to install via rpm-ostree that doesn't involve hackey workarounds for us folks on the Atomic editions of Fedora (Silverblue, Kinoite, CoreOS, etc.).