From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id 2F9148824B for ; Wed, 5 Jan 2022 12:09:15 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 207A726BE5 for ; Wed, 5 Jan 2022 12:09:15 +0100 (CET) Received: from proxmox-new.maurer-it.com (proxmox-new.maurer-it.com [94.136.29.106]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS id A731B26BDC for ; Wed, 5 Jan 2022 12:09:14 +0100 (CET) Received: from proxmox-new.maurer-it.com (localhost.localdomain [127.0.0.1]) by proxmox-new.maurer-it.com (Proxmox) with ESMTP id 80F2845F06 for ; Wed, 5 Jan 2022 12:09:14 +0100 (CET) From: Oguz Bektas To: pve-devel@lists.proxmox.com Date: Wed, 5 Jan 2022 12:09:10 +0100 Message-Id: <20220105110910.382362-1-o.bektas@proxmox.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 0 AWL 0.656 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment PROLO_LEO1 0.1 Meta Catches all Leo drug variations so far SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Subject: [pve-devel] [PATCH docs] pct: use code blocks in example commands for bindmounts X-BeenThere: pve-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Jan 2022 11:09:15 -0000 for better readability on the wiki page and admin guide. Signed-off-by: Oguz Bektas --- pct.adoc | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/pct.adoc b/pct.adoc index 3fd7361..ebae3e9 100644 --- a/pct.adoc +++ b/pct.adoc @@ -521,10 +521,21 @@ hierarchy under `/mnt/bindmounts`. Never bind mount system directories like NOTE: The bind mount source path must not contain any symlinks. For example, to make the directory `/mnt/bindmounts/shared` accessible in the -container with ID `100` under the path `/shared`, use a configuration line like -`mp0: /mnt/bindmounts/shared,mp=/shared` in `/etc/pve/lxc/100.conf`. -Alternatively, use `pct set 100 -mp0 /mnt/bindmounts/shared,mp=/shared` to -achieve the same result. +container with ID `100` under the path `/shared`, add a configuration line such as: + +---- +mp0: /mnt/bindmounts/shared,mp=/shared +---- + +into `/etc/pve/lxc/100.conf`. + +Or alternatively use the `pct` tool: + +---- +pct set 100 -mp0 /mnt/bindmounts/shared,mp=/shared +---- + +to achieve the same result. Device Mount Points -- 2.30.2