update doc structure
This commit is contained in:
@@ -3,7 +3,7 @@ source "$(dirname -- "${BASH_SOURCE[0]}")/lib.sh"
|
||||
[[ $# == 0 || ( $# == 1 && $1 == --install-deps ) ]] || die 'Usage: tools/bootstrap-host [--install-deps]'
|
||||
[[ $(uname -s) == Linux && $(uname -m) == x86_64 ]] || die 'M0 requires an x86_64 Linux build host'
|
||||
source /etc/os-release
|
||||
[[ $ID == arch ]] || die 'M0 bootstrap supports Arch Linux; see docs/developer/build-host.md'
|
||||
[[ $ID == arch ]] || die 'M0 bootstrap supports Arch Linux; see fds-os.wiki/Developer-Build-Host.md'
|
||||
(( EUID != 0 )) || die 'Run as a normal user, not root'
|
||||
[[ ! $FDS_ROOT =~ [[:space:]] ]] || die 'xbps-src requires a checkout path without whitespace'
|
||||
if [[ ${1:-} == --install-deps ]]; then
|
||||
@@ -17,6 +17,11 @@ done
|
||||
# Fail before downloading if unprivileged build containers cannot run.
|
||||
bwrap --ro-bind / / --unshare-user --uid 0 --gid 0 true || die 'bubblewrap user namespaces are unavailable'
|
||||
cd "$FDS_ROOT"
|
||||
if [[ ! -f fds-os.wiki/Home.md ]]; then
|
||||
[[ ${FDS_OFFLINE:-0} != 1 ]] || die 'Frozen inputs are missing fds-os.wiki/Home.md'
|
||||
git submodule update --init fds-os.wiki
|
||||
[[ -f fds-os.wiki/Home.md ]] || die 'Documentation submodule is missing Home.md'
|
||||
fi
|
||||
mkdir -p out/downloads out/logs .host
|
||||
if [[ ${FDS_OFFLINE:-0} != 1 ]]; then
|
||||
git -c http.lowSpeedLimit=1000 -c http.lowSpeedTime=60 submodule update --init --depth 1 vendor/void-packages
|
||||
|
||||
Reference in New Issue
Block a user