https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=292225

--- Comment #2 from Frank Moore <[email protected]> ---
Please ignore previous patch.

In section 2.3.1. Prepare the Installation Media of the handbook, a code
snippet provides the code to verify the
checksum of the .iso using the following command:

% sha256sum -c CHECKSUM.SHA256-FreeBSD-{rel-latest}-RELEASE-amd64
--ignore-missing

The --ignore-missing long argument exists on Linux (for example Arch) but does
not seem to exist on FreeBSD using
either the sha256sum or sha512sum commands. Therefore, running the code
fragment above returns the following error:

sha256sum: illegal option -- -
usage: sha256sum [-pqrtx] [-c file] [-s string] [files ...]

Running the sha256sum command without the --ignore-missing option allows
the command to run and verify the checksum but it also produces the following
extra output:

% sha256sum -c CHECKSUM.SHA256-FreeBSD-14.3-RELEASE-amd64
sha256sum: FreeBSD-14.3-RELEASE-amd64-bootonly.iso: No such file or directory
sha256sum: FreeBSD-14.3-RELEASE-amd64-bootonly.iso.xz: No such file or
directory
sha256sum: FreeBSD-14.3-RELEASE-amd64-disc1.iso: No such file or directory
sha256sum: FreeBSD-14.3-RELEASE-amd64-disc1.iso.xz: No such file or directory
sha256sum: FreeBSD-14.3-RELEASE-amd64-dvd1.iso: No such file or directory
sha256sum: FreeBSD-14.3-RELEASE-amd64-dvd1.iso.xz: No such file or directory
FreeBSD-14.3-RELEASE-amd64-memstick.img: OK
sha256sum: FreeBSD-14.3-RELEASE-amd64-memstick.img.xz: No such file or
directory
sha256sum: FreeBSD-14.3-RELEASE-amd64-mini-memstick.img: No such file or
directory
sha256sum: FreeBSD-14.3-RELEASE-amd64-mini-memstick.img.xz: No such file or
directory

Running the shasum command with the -a option (of 256 or 512) produces the
following
output (as currently seen in the handbook) with no errors:

% shasum -a 256 -c CHECKSUM.SHA256-FreeBSD-14.3-RELEASE-amd64 --ignore-missing
FreeBSD-14.3-RELEASE-amd64-memstick.img: OK

% shasum -a 512 -c CHECKSUM.SHA512-FreeBSD-14.3-RELEASE-amd64 --ignore-missing
FreeBSD-14.3-RELEASE-amd64-memstick.img: OK

Therefore this ticket reworks that small section of the handbook to use the
shasum command instead of sha256sum or sha512sum.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to