HomeFreeBSD

rescue: Add fetch(1) to the rescue tool.

Description

rescue: Add fetch(1) to the rescue tool.

After a failed upgrade, having fetch(1) on a system that is
physically unnreachable would be very useful to download files
required to get the OS back up and functional.

On my system this adds 589,824 bytes (3.8%) to the binary size.

PR: 266224
Reported by: Dan Mahoney
Differential Revision: https://reviews.freebsd.org/D38193

(cherry picked from commit ea34aa4780e5a581732520ea579342af94684882)

rescue: Fix link order of SSL libraries and fetch.

ld.bfd requires libraries to be linked in order. libssl requires
libcrypto. libfetch requires libssl. To fix the latter, move fetch
up above tar rather than listing the ssl libraries twice.

Reviewed by: delphij
Fixes: ea34aa4780e5 rescue: Add fetch(1) to the rescue tool.
Differential Revision: https://reviews.freebsd.org/D38304

(cherry picked from commit 0f031350f32b8760e0843a6476d67aa21116103b)

Details

Provenance
john.grafton_runbox.comAuthored on Jan 29 2023, 11:05 PM
delphijCommitted on Feb 12 2023, 7:58 AM
Reviewer
rGea34aa4780e5: rescue: Add fetch(1) to the rescue tool.
Differential Revision
D38193: rescue: Add fetch(1)
Parents
rG316cf82382e0: sha512_224: Fix SHA512_224_Final() on little-endian machines.
Branches
Unknown
Tags
Unknown