gwsystems / sledge-serverless-framework

SLEdge: a serverless runtime designed for the Edge.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Uname fails when running install_deb.sh

mzpqnxow opened this issue · comments

commented

See PR #381

Seems that the non-portable -p option doesn't work on my x86_64 Bullseye machine, so I get:

11:25:32 › ./install_deb.sh 
This script only supports x86_64 and aarch64
11:24:54 › 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)

Switching from using -p to -m gives the expected output (x86_64)

commented

Echoing the comment I wrote in the PR:

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...