forked from Harvey-OS/harvey
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbootstrap.sh
More file actions
executable file
·28 lines (22 loc) · 850 Bytes
/
bootstrap.sh
File metadata and controls
executable file
·28 lines (22 loc) · 850 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/sh
git submodule init
git submodule update
echo Building the build tool...
GOBIN="$(pwd)/util" GOPATH="$(pwd)/util/third_party:$(pwd)/util" go get -d harvey/cmd/... # should really vendor these bits
GOBIN="$(pwd)/util" GOPATH="$(pwd)/util/third_party:$(pwd)/util" go install github.com/rminnich/ninep/srv/examples/ufs harvey/cmd/...
echo Downloading the blaze tool...
curl -L http://sevki.co/get-build -o util/blaze
chmod +x util/blaze
# this will make booting a VM easier
mkdir -p tmp
cat <<EOF
# We support RISC-V, but the default is x86_64 (which we call amd64 for historical reasons):
export ARCH=amd64
# And build:
./util/build
# See \`build -h' for more information on the build tool.
To enable access to files, create a harvey and none user:
sudo useradd harvey
sudo useradd none
none is only required for drawterm/cpu access
EOF