gwsystems / sledge-serverless-framework

SLEdge: a serverless runtime designed for the Edge.
GNU General Public License v2.0
105 stars 16 forks source link

Update install_deb.sh #381

Closed mzpqnxow closed 11 months ago

mzpqnxow commented 11 months ago

When using ./install_deb.sh on an x86_64 Debian Bullseye system, I get this:

11:24:21 › ./install_deb.sh 
This script only supports x86_64 and aarch64

This is because uname -p is being used to get the CPU architecture

11:25 › lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 11 (bullseye)
Release:    11
Codename:   bullseye

11:25 › uname --help
Usage: uname [OPTION]...
Print certain system information.  With no OPTION, same as -s.

  -a, --all                print all information, in the following order,
                             except omit -p and -i if unknown:
  -s, --kernel-name        print the kernel name
  -n, --nodename           print the network node hostname
  -r, --kernel-release     print the kernel release
  -v, --kernel-version     print the kernel version
  -m, --machine            print the machine hardware name
  -p, --processor          print the processor type **(non-portable)**
  -i, --hardware-platform  print the hardware platform (non-portable)
  -o, --operating-system   print the operating system
      --help     display this help and exit
      --version  output version information and exit

GNU coreutils online help: <https://www.gnu.org/software/coreutils/>
Full documentation <https://www.gnu.org/software/coreutils/uname>
or available locally via: info '(coreutils) uname invocation'
11:25 › uname -p
unknown
11:25 › uname -m
x86_64

I'm surprised this hasn't been an issue for others... do I have some bizarro configuration? shrug

emil916 commented 11 months ago

Wow! You are absolutely right! I guess we never really tested on other distros, mainly on Ubuntu LTSs with x86 and ARM. Thank you for the fix! Merging...