From nobody Sat Dec 2 22:01:17 2023 X-Original-To: rc@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4SjP5T5VQlz52pVL for ; Sat, 2 Dec 2023 22:01:17 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4SjP5T1YLnz4rhB for ; Sat, 2 Dec 2023 22:01:17 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1701554477; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=hGdnxMuW/cdZB72G3AmdgbQmgadRKweFJcQtosxps7A=; b=xNf4Pinr31QlW8ia9RDzKy2IM/Mq+fcVwrUozxZ0q+GSL/ymSrsg5PRmad/zoXR+RZgS2m B0gpMqNzUySyV2yB5r502clKuSjcSREviPGfj1fsEYuZZF/F62RCvugCLvc3jPJOvoi2Pz wVZ2Vjp9M8gCxdLCzrDJcYSSwpRSWGeaN5Yawv+pttpTN1C3CvP0P4FkFOQcjVdNV0DYo6 10oeh6b/qfJch7kS4j7+VXkLmyI6ECCxH2GfO7O4Gy+WEttkojErpuGcJuIlPfXlbEKN/r UZAEyCKCngtVAHor0GQB0zo36bvtezJdt8JjKsTG+x2zSoAT0zYsLT60C7Wx2Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1701554477; a=rsa-sha256; cv=none; b=ZtgPx0PRMwTq5s6Xc/WIzDEcRKOs1+qZIsiZXH2uQPvJFzE95D45VFLYJN79Z6A5VJidmI QzLoWMD1dbNmevH4rs6n246nYr1/tYOcI0kIdWGd0tMGqIDbqXUPIQtBoYdNRwzGYiVhC2 K0roTp0nktQio2/2BsVaNkH8MXMk9TACUPUAk9GzoabsHPBHfeUlLVP1ed4X2q+dAbnjgB rwx4PY/TJBblidWlqgHCkq7dA2lmcwbG/MTbU+Icy1mgvJ8HqLx4Q9zwnD+5XOjJ1n95/G 2PUkm/pNldvDtLj1iJbuBHHQaG6Ix5wJJLkO0mI2id0BXru6jQVcYE+eoHSRkQ== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4SjP5S5G6kzZ8x for ; Sat, 2 Dec 2023 22:01:16 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 3B2M1GHF097678 for ; Sat, 2 Dec 2023 22:01:16 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 3B2M1GZW097677 for rc@FreeBSD.org; Sat, 2 Dec 2023 22:01:16 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: rc@FreeBSD.org Subject: [Bug 274977] [rc] [patch] /etc/rc.initdiskless: /rescue/tar: not found Date: Sat, 02 Dec 2023 22:01:17 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: conf X-Bugzilla-Version: 13.2-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: rgrimes@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: rc@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Discussion related to /etc/rc.d design and implementation List-Archive: https://lists.freebsd.org/archives/freebsd-rc List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-rc@freebsd.org X-BeenThere: freebsd-rc@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D274977 Rodney W. Grimes changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |rgrimes@FreeBSD.org --- Comment #10 from Rodney W. Grimes --- 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.=