Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 08 Nov 2023 22:43:51 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 274977] [rc] [patch] /etc/rc.initdiskless: /rescue/tar: not found
Message-ID:  <bug-274977-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D274977

            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 encount=
ered
this problem from the console.

* /etc/rc.initdiskless: /rescue/tar: not found: I didn=E2=80=99t 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.initdisk=
less
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

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-274977-227>