6eea2623b5
Pkg installation failed somewhat frequently, always at:
[62/104] Fetching jpeg-turbo-2.0.6.txz: .......... done
pkg: http://pkgmir.geo.freebsd.org/FreeBSD:13:amd64/quarterly/All/jbigkit-2.1_1.txz: No route to host
Move pkg installation to a script and retry once upon failure as a
(hopefully temporary) workaround.
Reviewed by: imp
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D30613
(cherry picked from commit dd41de95a8
)
16 lines
146 B
Bash
16 lines
146 B
Bash
#!/bin/sh
|
|
set -e
|
|
|
|
pkg install -y "$@" && exit 0
|
|
|
|
cat <<EOF
|
|
pkg install failed
|
|
|
|
dmesg tail:
|
|
$(dmesg | tail)
|
|
|
|
trying again
|
|
EOF
|
|
|
|
pkg install -y "$@"
|