golang.org/x/build@v0.0.0-20240506185731-218518f32b70/env/dragonfly-amd64/phase2.sh (about) 1 #!/bin/sh 2 # Copyright 2023 The Go Authors. All rights reserved. 3 # Use of this source code is governed by a BSD-style 4 # license that can be found in the LICENSE file. 5 6 7 # Phase 2 of the DragonflyBSD installation: update pkg database. 8 9 set -ex 10 11 echo >&2 phase2.sh starting 12 13 # Make pfi look for CD again when booting for phase3. 14 # Normally /etc/pfi.conf is left behind and stops future checks. 15 # Edit /etc/rc.d/pfi to remove /etc/pfi.conf each time it starts running. 16 echo '/REQUIRE/a 17 rm -f /etc/pfi.conf 18 . 19 w 20 q' | ed /etc/rc.d/pfi 21 22 # pfi startup does not have full path that a root login does. 23 export PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/pkg/sbin:/usr/pkg/bin:/root/bin 24 25 # Update pkg database and install extras we need. 26 pkg install -y bash curl git gdb 27 28 echo 'DONE WITH PHASE 2.' 29 sync 30 poweroff 31 sleep 86400