Comments (15)
I'll try that on my Mac M1, never installed docker on it, will give it a try.
from 0-initramfs.
I guess build-essential was missing since it works fine now, don't have time to deep dive into what exactly the issue was. Thanks!
from 0-initramfs.
It seems that go
binary cannot be found. Does go version
in your shell works or you have a command not found
?
from 0-initramfs.
Seems to work:
toto@toto:~/0-initramfs$ go version
go version go1.19 linux/amd64
from 0-initramfs.
Note that all theses scripts are made to be run as root
. Can you try everything as root
?
from 0-initramfs.
Yes, same result unfortunately.
from 0-initramfs.
What does arch
command returns ?
from 0-initramfs.
toto@toto:~/0-initramfs$ arch
x86_64
from 0-initramfs.
And command -v go
?
from 0-initramfs.
toto@toto:~/0-initramfs$ command -v go
/usr/local/go/bin/go
from 0-initramfs.
if [ -z $GOPATH ]; then
if command -v go > /dev/null; then
export GOPATH=$(go env GOPATH)
else
echo "[-] variable GOPATH not defined"
exit 1
fi
fi
That's exactly what the scripts does. So it seems that your environment is not correct when running the script. I guess your PATH
and GOPATH
are reset when executing bash
.
Or try to execute the script without spawning a new bash process:
. ./initramfs.sh
Or try to export variables first:
export PATH
export GOPATH
bash -x initramfs.sh
But this should have been done by . autobuild/tf-build-settings.sh
, this script is there for that purpose exactly.
from 0-initramfs.
Both give the same exact issue, also on the m1 mac docker.
from 0-initramfs.
Well sorry, it works fine for me, using the same command:
docker run --platform=linux/amd64 -ti ubuntu:18.04 /bin/bash
apt-get update
apt-get install -y git build-essential curl
cd
git clone -b development-zos-v3-build-m1 https://github.com/threefoldtech/0-initramfs
cd 0-initramfs/
. ./autobuild/tf-build-deps.sh
. ./autobuild/tf-build-settings.sh
bash initramfs.sh
I made a new branch with a fix for the cpuinfo
issue, but there is no other changes.
Will try using Ubuntu 22.04
now but that's not supposedly supported.
from 0-initramfs.
Could not reproduce on Ubuntu 22.04
neither so far.
from 0-initramfs.
Ubuntu 22.04 is on bare metal x86_64 (desktop with intel processor). Will try your exact procedure on the mac m1 later, thank you for checking so fast, I will report back.
from 0-initramfs.
Related Issues (20)
- Add `containerd` to the zosv2 image
- Add `runc` to zosv2 image
- iPXE IPv6 setting HOT 2
- static build HOT 6
- Oops... no firmwares? HOT 1
- bump iproute2 HOT 1
- Can I please have bmon in the nodes ? HOT 3
- Update debugfs HOT 1
- still udev errors HOT 1
- Review release image
- please add sg_utils and hdparm to 0-OS (no flist) HOT 1
- Support ARM build HOT 1
- autobuild: github action ubuntu version deprecated
- [docs] readme is out of date HOT 1
- build: investigate to use portage as build mechanism
- 0-flist package used is an rc version HOT 3
- create a new release as the latest one is outdated
- Build using docker container does not work: no output in staging HOT 13
- Kernel update to latest LTS HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from 0-initramfs.