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

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 08 Nov 2023 22:43:51 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=274977

            Bug ID: 274977
           Summary: [rc] [patch] /etc/rc.initdiskless: /rescue/tar: not
                    found
           Product: Base System
           Version: 13.2-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: conf
          Assignee: bugs@FreeBSD.org
          Reporter: cc@FreeBSD.org

During the installation of FreeBSD13.2 via UEFI PXE on a mini PC, I encountered
this problem from the console.

* /etc/rc.initdiskless: /rescue/tar: not found: I didn’t found this file in the
base system extracted from the official archives such as
FreeBSD-13.2-RELEASE-amd64-bootonly.iso or
FreeBSD-13.2-RELEASE-amd64-disc1.iso. Instead, I edited the etc/rc.initdiskless
file where the tar is:

diff --git a/libexec/rc/rc.initdiskless b/libexec/rc/rc.initdiskless
index 9b37497c1e7e..ac305ffced5f 100644
--- a/libexec/rc/rc.initdiskless
+++ b/libexec/rc/rc.initdiskless
@@ -376,7 +376,7 @@ for i in ${templates} ; do
        if [ -f $j ]; then
            create_md $subdir
            echo "Loading /$subdir from cpio archive $j"
-           (cd / ; /rescue/tar -xpf $j)
+           (cd / ; /usr/bin/tar -xpf $j)
        fi
     done
     for j in /conf/$i/*/extract ; do

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