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
F102638206: D25323.diff
Fri, Nov 15, 4:25 AM
Unknown Object (File)
Sun, Oct 27, 8:18 AM
Unknown Object (File)
Thu, Oct 24, 5:18 AM
Unknown Object (File)
Thu, Oct 24, 5:18 AM
Unknown Object (File)
Thu, Oct 24, 5:18 AM
Unknown Object (File)
Thu, Oct 24, 4:58 AM
Unknown Object (File)
Oct 4 2024, 11:54 PM
Unknown Object (File)
Oct 4 2024, 7:26 PM
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