Page MenuHomeFreeBSD

Provide a friendlier message when bootstrap fails due to address resolution
ClosedPublic

Authored by thj on Jun 17 2020, 3:35 PM.
Tags
None
Referenced Files
F161466104: D25323.diff
Sat, Jul 4, 2:06 AM
Unknown Object (File)
May 27 2026, 1:44 PM
Unknown Object (File)
May 7 2026, 9:48 PM
Unknown Object (File)
May 7 2026, 12:44 PM
Unknown Object (File)
May 1 2026, 9:57 PM
Unknown Object (File)
May 1 2026, 5:58 PM
Unknown Object (File)
Apr 30 2026, 10:16 PM
Unknown Object (File)
Apr 12 2026, 6:07 AM
Subscribers

Details

Reviewers
bapt
bdrewery
bz
Group Reviewers
Restricted Owners Package(Owns No Changed Paths)
Commits
rS363412: MFC r362541:
rS362541: pkg: Provide a friendlier message when bootstrap fails due to address resolution
Summary

The current message when bootstapping pkg fails for any reason implies that pkg
is not available.

$ pkg bootstrap
The package management tool is not yet installed on your system.
Do you want to fetch and install it now? [y/N]: y
Bootstrapping pkg from pkg+http://pkg.FreeBSD.org/FreeBSD:12:amd64/quarterly, please wait...
pkg: Error fetching http://pkg.FreeBSD.org/FreeBSD:12:amd64/quarterly/Latest/pkg.txz: No address record
A pre-built version of pkg could not be found for your system.
Consider changing PACKAGESITE or installing it from ports: 'ports-mgmt/pkg'.

When bootstrap fails because DNS is either not configured or working this is
pretty scary. Offer a friendlier message when bootstrap fails due to name
resolution failing.

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 31773
Build 29336: arc lint + arc unit