Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v1.3 does not work with arm 64 architecture #84

Open
huan opened this issue Nov 8, 2020 · 2 comments
Open

v1.3 does not work with arm 64 architecture #84

huan opened this issue Nov 8, 2020 · 2 comments
Labels

Comments

@huan
Copy link
Owner

huan commented Nov 8, 2020

We have two reports from arm 64 users that the SMF can not start as expected:

Need to be investigated and fixed.

@huan huan added the bug label Nov 8, 2020
@gothchibjo
Copy link

Confirm for 1.4.7:
aarch64

@pd-giz-dave
Copy link

pd-giz-dave commented Aug 28, 2023

I have discovered three issues:

  1. the install-s6-overlays.sh script always loads the amd version (its not using the $URL variable built in the previous line)
  2. the -C option on the tar line is set to '\' (line continuation) and should be '/' (root)
  3. version 2 of s6 only provides a binary for 'arm'

Modified install-s6-overlays.sh is below:
`#!/usr/bin/env bash

set -eo pipefail

if [[ -n "$1" ]]; then
S6_VERSION=$1; shift
else
echo "arg 1 should be the s6 version"
exit 1
fi

case $(uname -m) in
armv6l)
;& # fall through
armv7l)
ARCH=arm
;;
armv8l)
ARCH=arm
;;
aarch64)
ARCH=arm
;;
i386)
ARCH=x86
;;
x86_64)
ARCH=amd64
;;
*)
echo "ARCH not supported: $ARCH"
exit 1
;;
esac

URL="https://github.com/just-containers/s6-overlay/releases/download/v${S6_VERSION}/s6-overlay-${ARCH}.tar.gz"
curl -L -s "$URL" | tar xpzf - -C /
`

Running script/build.sh then creates a binary on my aarch64 system that works. Maybe update to version 3 of s6? (I tried but got tangled up in other problems).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants