From nobody Mon Aug 12 09:13:48 2024 X-Original-To: dev-commits-doc-all@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 4Wj82h3Ksbz5S6L4 for ; Mon, 12 Aug 2024 09:13:48 +0000 (UTC) (envelope-from git@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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Wj82h1f5zz45fs; Mon, 12 Aug 2024 09:13:48 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1723454028; 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; bh=LDq2iWKk5d7E1PPLwi6ZNqJI9VE3YN3g0+sHl56rI4k=; b=R6d7AUNu0kIruggbqAJoNJfg5440kY3zsVi/ex3BrVwNcN8iIqNGlvpmmhn4Zp2yBYrkC/ Yyr8RGXcUaFJH6HARGnqZqt8KGCqLhTNXHfwAcgNFjAwItsH+rmT2VdY0F2O1EhI2TaGgE /929BMncU2QF4TUlMBaDZYWdqDG8QFCp2+E182kjw/R6BJ73gIe7gy915IsrQxTNUAepWr eFyBSJMQ+6bqjTr56GcMw+uTEEZc02GSL3X4Sb+NVAAz+u91DsK/QL31+xabyLJBIi9hes F+LhSUsb6tdXoPBDwCN2e+7FgJFnrrLJ3XahEjSuJ1OJZTKkKbWKMyTeWmlbcA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1723454028; a=rsa-sha256; cv=none; b=b6xsWfY6G+/v+kmmuKZzljfc8s4nW4U/tbyziXbQKm1IYKwr4CwYJVBZTPO7ag0bQiyGxh HoxqPQ8EVlxbYwuKYBix6GeyXb3jSOMgQUpWQUO7he3gJzQTLax5rIN4wnngu0f3m0gTmS kv01UrGqwG8uOAAAb79BEzhF1mDnBPrDPLrrPbbhFTFYYWTD1swhvPDCVNUCZWN5SKkZel Q4uge/m3Cp9REmMcJ0hRRqFvCVY1CDUocD/cSbI/JQcTHas6YGhL/HpEA3qH9zp0dc1IHb 24XWmy9nOVj36UfkDpKaJv3em6NHw4XCAC9qNzqHH6cVXdw9ARZ/zmtt9rGwNA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1723454028; 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; bh=LDq2iWKk5d7E1PPLwi6ZNqJI9VE3YN3g0+sHl56rI4k=; b=xc0x+vtz2hnA+2ud/Pm8v/nCPJcRCBKL9PIU/6DjLk32DG/TLU207FvwJpgk7br4J1IWku QkEaKFIKiddhuQA/x3TXx/alJUpGYRqGEhJhIzzLSsr+fEVzkcBFYfobvJ7yy9pYPv6g0c /96U4gGtB4THouUHqibohZIOp4vM2n+FGV9dL7V39jLxoFheZfviM+H0+GjT1059OB+QnX S8mrQoaRdCg9Xu1x/MxgEVPhqUQGZC8eXl33gGlz9cvTHox91W8l6bOsmj0ogmMFzopjw2 zoSJBgaXRzq7OqyCGta0mrPkCI8DayiPedAm14Ss4w3KPopBtIJaPI9So1kTTQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4Wj82h1FSszLlZ; Mon, 12 Aug 2024 09:13:48 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 47C9Dm71066630; Mon, 12 Aug 2024 09:13:48 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 47C9DmEZ066627; Mon, 12 Aug 2024 09:13:48 GMT (envelope-from git) Date: Mon, 12 Aug 2024 09:13:48 GMT Message-Id: <202408120913.47C9DmEZ066627@gitrepo.freebsd.org> To: doc-committers@FreeBSD.org, dev-commits-doc-all@FreeBSD.org From: Benedict Reuschling Subject: git: bfe353ddfe - main - Use full path to ifconfig/route binaries in VNET config example script List-Id: Commit messages for all branches of the doc repository List-Archive: https://lists.freebsd.org/archives/dev-commits-doc-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-doc-all@freebsd.org Sender: owner-dev-commits-doc-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: bcr X-Git-Repository: doc X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: bfe353ddfe4296576a04f328cfb3578e60bd25e2 Auto-Submitted: auto-generated The branch main has been updated by bcr: URL: https://cgit.FreeBSD.org/doc/commit/?id=bfe353ddfe4296576a04f328cfb3578e60bd25e2 commit bfe353ddfe4296576a04f328cfb3578e60bd25e2 Author: Benedict Reuschling AuthorDate: 2024-08-12 09:06:20 +0000 Commit: Benedict Reuschling CommitDate: 2024-08-12 09:06:20 +0000 Use full path to ifconfig/route binaries in VNET config example script Before this change, the jail.conf example for VNET jails produces the following error when running "service jail start vnet": Starting jails: cannot start jail "vnet": jail: vnet: exec ifconfig: No such file or directory jail: vnet: ifconfig epair154 create up: failed The solution is to provide full paths to both ifconfig and route (/sbin/ifconfig and /sbin/route, respectively) in the example. Afterwards, the jail starts without errors. This seems to be the only occurance in the chapter since the other examples do not have any exec.{prestart,start,poststop} sections. --- documentation/content/en/books/handbook/jails/_index.adoc | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/documentation/content/en/books/handbook/jails/_index.adoc b/documentation/content/en/books/handbook/jails/_index.adoc index c49052cdb2..fbe5e053c4 100644 --- a/documentation/content/en/books/handbook/jails/_index.adoc +++ b/documentation/content/en/books/handbook/jails/_index.adoc @@ -752,13 +752,13 @@ vnet { $epair = "epair${id}"; # ADD TO bridge INTERFACE - exec.prestart = "ifconfig ${epair} create up"; - exec.prestart += "ifconfig ${epair}a up descr jail:${name}"; - exec.prestart += "ifconfig ${bridge} addm ${epair}a up"; - exec.start += "ifconfig ${epair}b ${ip} up"; - exec.start += "route add default ${gateway}"; - exec.poststop = "ifconfig ${bridge} deletem ${epair}a"; - exec.poststop += "ifconfig ${epair}a destroy"; + exec.prestart = "/sbin/ifconfig ${epair} create up"; + exec.prestart += "/sbin/ifconfig ${epair}a up descr jail:${name}"; + exec.prestart += "/sbin/ifconfig ${bridge} addm ${epair}a up"; + exec.start += "/sbin/ifconfig ${epair}b ${ip} up"; + exec.start += "/sbin/route add default ${gateway}"; + exec.poststop = "/sbin/ifconfig ${bridge} deletem ${epair}a"; + exec.poststop += "/sbin/ifconfig ${epair}a destroy"; } ....