From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate001.proxmox.com (gate001.proxmox.com [IPv6:2a0f:8001:1:32::40]) by lore.proxmox.com (Postfix) with ESMTPS id 845371FF129 for ; Mon, 13 Jul 2026 05:16:49 +0200 (CEST) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id 52BF62134E; Mon, 13 Jul 2026 05:16:48 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1783912563; x=1784517363; darn=lists.proxmox.com; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to :content-type; bh=TNUNaRIYxOAeXSF2XrtM6wWFSS3fj1Wj0aj+NNfjD0Y=; b=QOVx7oYZcbXd1B9U8jtKShsExadyOdsgLiL+HLxb41Juv3Gq2vgTK81ter/YVPNkkv ne1+MuDIrcbV64PV3k7q2KBRdh0SB+4wJ6IekPJtL5QeCpQ4Vncm516lAfBciLsdXac4 7JIaCn2MCmihgrcsXFtFAuX+Gx7fAXmIDVuKH6piBgE2JFAH5oqwKslDgB6YeuGhA0Qj 9J79WIJkzGVPEgY6EH7dvua/U7gw0VQWa43usHuPFCoI+fD0jmYcP4HBDV2ZQGfdBqhz Z0abcVpp+frx94BWgR+sPpbbXefk3E/CLPeVswfzMnh7fj23DKaZTYQw/NfYxiQnTKtI HWMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783912563; x=1784517363; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=TNUNaRIYxOAeXSF2XrtM6wWFSS3fj1Wj0aj+NNfjD0Y=; b=VXJmSmzJkpccCNTMGHEBYU3Q7y6BcsLzZJYADo8NlEbpAuo4UROylurNt94IlFvVhT jfyEd1wAdZhYQJwgJMv4VmIw/LDUxfGQAUZb49ZwOeoLfQCgwxX4tawlO27PP+njvnZy v/252hEKyaUReEiqZ26fV9BCttCyjGmesicXRBmJjKqfC6zNNkZLp7tx0Y+d/RVRVyPt KpV0PZp7bwyo7ye/uLWl2v65XlxwKEZa8rzmyf2Bgs9AnHr785KQHjHiZs0HVAEEWkR5 LL8ABT0cEjziCFbXl/MhsBFSyut7ms1ZNKpnZEnEKDPBkBcerPaJhwoMteZkd1QTL+5j fLjA== X-Gm-Message-State: AOJu0Yxm68Y9Jh7tn1lw9chQaHSd0tL8NYpIW6Onh4yd99BOO5aD2nQv bwW9VTGYJf981h9pl4upl6vIN7/ny3lPDsy2nWJ+zu8mEdksXFyv3bh3HekwT1XBxSU= X-Gm-Gg: AfdE7ckeFe8Oubljpy3MHzFL1ACE8rViprVy9Ot6ICz0aLOeSXIRxwkEKHqLd+psymk 3bi5L+wUI92bOyeylULlSLJsWE/ipJwyzA4RkgeMP1ZBNrD//1NxgaTNwPrh7dJNd1XTPTN0bY1 IY6yaj81hS9THmuYcP3ugcRUfnL4HeWnfwYG2DER8rkV/pLs6lTPiryHwJDi/pDnKrnyOkcM/j4 i5Pvhj6CwPniQJLItkOPhyyJkybx8964zZRzHzxG+5kx5Bn+11r5hjoeyM6Bn+AgqRXbaWayogK H7pCYA6Od/NHVTZuzlSrSmji8+Oe4ADFTnvFQPtMOOuISYNccBrgWMq4ICcIy5BFAUpMGCMfACm mdBfHQ2vY7K5Mc9hU8ZYMEQNl7pYfDOWTRndN2VfqwjZ1zpSVVf7Ks9AQGRN4wYIQnCkt1WPqhb 4Ap6PGvNHqfFYn4F6X X-Received: by 2002:a17:90b:4a0c:b0:37f:ec5e:12d9 with SMTP id 98e67ed59e1d1-38dc75f6500mr7490756a91.16.1783912562402; Sun, 12 Jul 2026 20:16:02 -0700 (PDT) Message-ID: <3ea4bff8-41c1-4823-a9cc-9922f21ad443@gmail.com> Date: Mon, 13 Jul 2026 11:15:59 +0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH pve-container] setup: openeuler: use network scripts to setup network To: pve-devel@lists.proxmox.com References: <20260706121458.73398-1-wukaiyang@loongfans.cn> Content-Language: en-US From: Kaiyang Wu In-Reply-To: <20260706121458.73398-1-wukaiyang@loongfans.cn> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-SPAM-LEVEL: Spam detection results: 0 DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain DKIM_VALID_EF -0.1 Message has a valid DKIM or DK signature from envelope-from domain DMARC_PASS -0.1 DMARC pass policy FREEMAIL_ENVFROM_END_DIGIT 1 Envelope-from freemail username ends in digit FREEMAIL_FROM 0.001 Sender email is commonly abused enduser mail provider RCVD_IN_DNSWL_NONE -0.0001 Sender listed at https://www.dnswl.org/, no trust SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Message-ID-Hash: 2KR57OLRRWA22O54RIWXAQQ6SYXYOCZM X-Message-ID-Hash: 2KR57OLRRWA22O54RIWXAQQ6SYXYOCZM X-MailFrom: wukaiyang2003@gmail.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Kaiyang Wu X-Mailman-Version: 3.3.10 Precedence: list List-Id: Proxmox VE development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Gentle ping, can anyone please take a look? Kaiyang On 2026-07-06 20:14, Kaiyang Wu wrote: > Fix the error "can't open '/etc/redhat-release' - No such file or > directory". > > Fix the typo "netork" => "network". > > openEuler does not provide '/etc/redhat-release', which causes an error > during network setup, as the setup script attempts to distinguishes > RedHat releases, whereas openEular never shipped this file. > > openEuler defaults to use network scripts in LXC templates shipped by > linuxcontainers.org. [0] > > [0] https://github.com/lxc/lxc-ci/blob/7a61e7539f0009ab458661628a34267cbfc288a7/images/openeuler.yaml#L239 > > Signed-off-by: Kaiyang Wu > --- > src/PVE/LXC/Setup/CentOS.pm | 4 ++-- > src/PVE/LXC/Setup/OpenEuler.pm | 6 ++++++ > 2 files changed, 8 insertions(+), 2 deletions(-) > > diff --git a/src/PVE/LXC/Setup/CentOS.pm b/src/PVE/LXC/Setup/CentOS.pm > index 2469046..7e8140b 100644 > --- a/src/PVE/LXC/Setup/CentOS.pm > +++ b/src/PVE/LXC/Setup/CentOS.pm > @@ -197,7 +197,7 @@ sub setup_network { > # With CentOS/AlmaLinux/... 10 the support for network scripts got dropped. > setup_network_with_networkmanager($self, $conf); > } else { > - setup_netork_with_network_scripts($self, $conf); > + setup_network_with_network_scripts($self, $conf); > } > } > > @@ -284,7 +284,7 @@ sub setup_network_with_networkmanager { > } > } > > -sub setup_netork_with_network_scripts { > +sub setup_network_with_network_scripts { > my ($self, $conf) = @_; > > my ($gw, $gw6); > diff --git a/src/PVE/LXC/Setup/OpenEuler.pm b/src/PVE/LXC/Setup/OpenEuler.pm > index 9bfd5c4..185ff5a 100644 > --- a/src/PVE/LXC/Setup/OpenEuler.pm > +++ b/src/PVE/LXC/Setup/OpenEuler.pm > @@ -33,4 +33,10 @@ sub setup_init { > $self->setup_systemd_preset(); > } > > +sub setup_network { > + my ($self, $conf) = @_; > + > + $self->setup_network_with_network_scripts($self, $conf); > +} > + > 1;