Page MenuHomePureOS Tracker

support SaltStack
Closed, InvalidPublic

Description

The salt installation script is currently failing, when called as noted here:
https://docs.saltstack.com/en/getstarted/fundamentals/install.html

The documented installation procedure is:

curl -L https://bootstrap.saltstack.com -o install_salt.sh
sudo sh install_salt.sh -M

But PureOS is unknown to the installation script.

It could be fixed with this patch:

--- ./install_salt.sh	2018-11-29 21:25:45+01	1.1
+++ ./install_salt.sh	2018-11-29 22:00:59+01
@@ -1425,7 +1425,7 @@
     # If the file does not exist, return
     [ ! -f /etc/os-release ] && return
 
-    DEBIAN_DERIVATIVES="(cumulus_.+|devuan|kali|linuxmint|raspbian)"
+    DEBIAN_DERIVATIVES="(cumulus_.+|devuan|kali|linuxmint|raspbian|pureos)"
     # Mappings
     cumulus_2_debian_base="7.0"
     cumulus_3_debian_base="8.0"
@@ -1435,6 +1435,7 @@
     linuxmint_1_debian_base="8.0"
     raspbian_8_debian_base="8.0"
     raspbian_9_debian_base="9.0"
+    pureos_8_debian_base="9.0"
 
     # Translate Debian derivatives to their base Debian version
     match=$(echo "$DISTRO_NAME_L" | grep -E ${DEBIAN_DERIVATIVES})
@@ -1461,6 +1462,10 @@
                 _major=$(echo "$DISTRO_VERSION" | sed 's/^\([0-9]*\).*/\1/g')
                 _debian_derivative="raspbian"
                 ;;
+            pureos)
+                _major=$(echo "$DISTRO_VERSION" | sed 's/^\([0-9]*\).*/\1/g')
+                _debian_derivative="pureos"
+                ;;
         esac
 
         _debian_version=$(eval echo "\$${_debian_derivative}_${_major}_debian_base" 2>/dev/null)

A bug report to SaltStack should be raised.

Event Timeline

hethi created this task.Nov 29 2018, 13:06
jonas.smedegaard closed this task as Invalid.May 25 2021, 12:43
jonas.smedegaard added a subscriber: jonas.smedegaard.

That looks like an issue not with PureOS but with a script executed from a direct download (something that is generally frowned upon due to its security implications, but that is another topic): Please report as an issue upstream instead.

Closing as a non-issue in PureOS.