[Bug 274977] [rc] [patch] /etc/rc.initdiskless: /rescue/tar: not found

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 01 Dec 2023 21:20:33 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=274977

--- Comment #9 from Cheng Cui <cc@FreeBSD.org> ---
(In reply to Warner Losh from comment #8)

> It breaks / and /usr being on different partitions.

Please let me know if these are the partitions in default. Because as an
average user who simply follows the bandbook and finds installation images from
a well-known place like https://www.freebsd.org/where/, does not and shall not
care about advanced details about where the "/rescue" is.

> Why don't you have /rescue?

After I re-installed my box again with FreeBSD 14.0-RELEASE through pxeboot and
by using the content from the FreeBSD-14.0-RELEASE-amd64-disc1.iso, I found
there shall be clarification that the execute of "rc.initdiskless" is part of
the booting process, not a start of the installation process. So I encountered
the "/rescue/tar: not found" again, but with the change I could finish the boot
and then start the installation. Once the installation finished, I found the
files in "/rescue". This means although there are no files in "/rescue" from
the ISO, they will be generated during the installation. Then, the system has
the "/rescue".

So far, the only place that the keyword "rescue" shows up in "rc.initdiskless"
is where the "/rescue/tar" shall be replaced with "/usr/bin/tar" in the
proposed patch. Given "rc.initdiskless" is used during the pxeboot, and files
in "/rescue" are not ready yet and will be ready after the installation, I
think the change is not bad.

Also please let me know if the revert of commit
https://cgit.freebsd.org/src/commit/?id=6e352319b6ff97a20b53d13a6df76b71dd12afc9
is a better solution, although I don't think so.

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