[Bug 274977] [rc] [patch] /etc/rc.initdiskless: /rescue/tar: not found
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 02 Dec 2023 22:01:17 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=274977 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 handbook, 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 “Updating FreeBSD from Source” for more detailed instructions, but do not forget to add DESTDIR=${NFSROOTDIR} when running the make installkernel and 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 (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 out" exit 1 fi -- You are receiving this mail because: You are the assignee for the bug.