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 269746E6DA for ; Tue, 24 Aug 2021 13:28:23 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 10DD42C80E for ; Tue, 24 Aug 2021 13:27:53 +0200 (CEST) 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 B9BAB2C800 for ; Tue, 24 Aug 2021 13:27:48 +0200 (CEST) Received: from proxmox-new.maurer-it.com (localhost.localdomain [127.0.0.1]) by proxmox-new.maurer-it.com (Proxmox) with ESMTP id 8B2FF43726 for ; Tue, 24 Aug 2021 13:27:48 +0200 (CEST) Message-ID: <0f889955-a44d-0c0d-bbc5-f8ecfd78d2e2@proxmox.com> Date: Tue, 24 Aug 2021 13:27:42 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.0 Content-Language: en-GB To: Proxmox VE development discussion , Oguz Bektas References: <20210824100741.976738-1-o.bektas@proxmox.com> From: Thomas Lamprecht In-Reply-To: <20210824100741.976738-1-o.bektas@proxmox.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-SPAM-LEVEL: Spam detection results: 0 AWL 1.373 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 NICE_REPLY_A -2.023 Looks like a legit reply (A) SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record URIBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [centos.pm, proxmox.com] Subject: Re: [pve-devel] [PATCH container] setup/centos: set /etc/locale.conf to avoid systemd-firstboot hanging 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: Tue, 24 Aug 2021 11:28:23 -0000 On 24/08/2021 12:07, Oguz Bektas wrote: > we can set the locale to a sane default to avoid the issue described in > forum post [0] > > [0]: https://forum.proxmox.com/threads/centos-lxc-containers-require-a-reboot.94972/ > > Signed-off-by: Oguz Bektas > --- > src/PVE/LXC/Setup/CentOS.pm | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/src/PVE/LXC/Setup/CentOS.pm b/src/PVE/LXC/Setup/CentOS.pm > index 77eb6f7..fa8f862 100644 > --- a/src/PVE/LXC/Setup/CentOS.pm > +++ b/src/PVE/LXC/Setup/CentOS.pm > @@ -110,6 +110,10 @@ sub template_fixup { > $data =~ s!^(/sbin/start_udev.*)$!#$1!gm; > $self->ct_file_set_contents($filename, $data); > } > + > + # temporary fix for systemd-firstboot > + $self->ct_file_set_contents('/etc/locale.conf', "LANG=C.utf8"); > + really should not be done if the file already exists/contains options though? Else you potentially override customized templates, which is not nice. > # always call so root can login, if /etc/securetty doesn't exists it's a no-op > $self->setup_securetty($conf); > } >