From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <pve-devel-bounces@lists.proxmox.com>
Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68])
	by lore.proxmox.com (Postfix) with ESMTPS id B6D4C1FF191
	for <inbox@lore.proxmox.com>; Mon,  2 Jun 2025 11:37:52 +0200 (CEST)
Received: from firstgate.proxmox.com (localhost [127.0.0.1])
	by firstgate.proxmox.com (Proxmox) with ESMTP id 02F3C1EA24;
	Mon,  2 Jun 2025 11:38:09 +0200 (CEST)
Mime-Version: 1.0
Date: Mon, 02 Jun 2025 11:37:35 +0200
Message-Id: <DABY342AT6OA.3C2C4A9JI35E2@proxmox.com>
To: "Filip Schauer" <f.schauer@proxmox.com>
From: "Christoph Heiss" <c.heiss@proxmox.com>
X-Mailer: aerc 0.20.1
References: <20250520124257.165949-1-f.schauer@proxmox.com>
 <20250520124257.165949-9-f.schauer@proxmox.com>
In-Reply-To: <20250520124257.165949-9-f.schauer@proxmox.com>
X-SPAM-LEVEL: Spam detection results:  0
 AWL 0.030 Adjusted score from AWL reputation of From: address
 BAYES_00                 -1.9 Bayes spam probability is 0 to 1%
 DMARC_MISSING             0.1 Missing DMARC policy
 KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment
 SPF_HELO_NONE           0.001 SPF: HELO does not publish an SPF Record
 SPF_PASS               -0.001 SPF: sender matches SPF record
Subject: Re: [pve-devel] [PATCH container 8/9] setup: debian: create
 /etc/network path if missing
X-BeenThere: pve-devel@lists.proxmox.com
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Proxmox VE development discussion <pve-devel.lists.proxmox.com>
List-Unsubscribe: <https://lists.proxmox.com/cgi-bin/mailman/options/pve-devel>, 
 <mailto:pve-devel-request@lists.proxmox.com?subject=unsubscribe>
List-Archive: <http://lists.proxmox.com/pipermail/pve-devel/>
List-Post: <mailto:pve-devel@lists.proxmox.com>
List-Help: <mailto:pve-devel-request@lists.proxmox.com?subject=help>
List-Subscribe: <https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel>, 
 <mailto:pve-devel-request@lists.proxmox.com?subject=subscribe>
Reply-To: Proxmox VE development discussion <pve-devel@lists.proxmox.com>
Cc: Proxmox VE development discussion <pve-devel@lists.proxmox.com>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: pve-devel-bounces@lists.proxmox.com
Sender: "pve-devel" <pve-devel-bounces@lists.proxmox.com>

On Tue May 20, 2025 at 2:42 PM CEST, Filip Schauer wrote:
> This prevents an error during Debian container setup when the
> /etc/network directory is missing.

Out of curiosity: Is this actually related to the OCI support in this
series or a separate/independent fix?

As this is specific to Debian LXCs.

>
> Signed-off-by: Filip Schauer <f.schauer@proxmox.com>
> ---
>  src/PVE/LXC/Setup/Debian.pm | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/src/PVE/LXC/Setup/Debian.pm b/src/PVE/LXC/Setup/Debian.pm
> index 8f7f524..b607c44 100644
> --- a/src/PVE/LXC/Setup/Debian.pm
> +++ b/src/PVE/LXC/Setup/Debian.pm
> @@ -418,6 +418,7 @@ sub setup_network {
>  	              $interfaces;
>      }
>
> +    $self->ct_make_path('/etc/network');
>      $self->ct_file_set_contents($filename, $interfaces);
>  }
>



_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel