Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 02 Dec 2023 22:01:17 +0000
From:      bugzilla-noreply@freebsd.org
To:        rc@FreeBSD.org
Subject:   [Bug 274977] [rc] [patch] /etc/rc.initdiskless: /rescue/tar: not found
Message-ID:  <bug-274977-20181-SVDdpLLn1T@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-274977-20181@https.bugs.freebsd.org/bugzilla/>
References:  <bug-274977-20181@https.bugs.freebsd.org/bugzilla/>

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

Rodney W. Grimes <rgrimes@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rgrimes@FreeBSD.org

--- Comment #10 from Rodney W. Grimes <rgrimes@FreeBSD.org> ---
Are you trying to directly use an .ISO image as a diskless boot image?

The proper steps for setting up a PXE/diskless boot server are in the handb=
ook,
and if they are followed this problem well not occur.

Specifically at 34.10.1 step 8:
Install the base system into ${NFSROOTDIR}, either by decompressing the
official archives or by rebuilding the FreeBSD kernel and userland (refer to
=E2=80=9CUpdating FreeBSD from Source=E2=80=9D for more detailed instructio=
ns, but do not
forget to add DESTDIR=3D${NFSROOTDIR} when running the make installkernel a=
nd
make installworld commands.

Decompressing and extracting the base.txz well infact end up with a fully
populated ./rescue tree in ${NFSROOTDIR} and rc.diskless works as intended.


NOW, if this is the ONLY change we need to make to use the .ISO image as a =
PXE
${NFSROOTDIR} and have it work and boot up to the installer I would suggest=
 a
little bit more flexable change using a
    if [ -x /rescue/tar ]; then=20
        (cd /; /rescue/tar -xpf $j)
    else
        if [ -x /usr/bin/tar ]; then
            (cd /; /usr/bin/tar -xpf $j)
        else
            echo "Cant seem to find /rescue/tar or /usr/bin/tar, bailing ou=
t"
        exit 1
    fi

--=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-20181-SVDdpLLn1T>