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 2C4F0705F9 for ; Thu, 24 Jun 2021 13:20:38 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 22973A5E5 for ; Thu, 24 Jun 2021 13:20:38 +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)) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS id B1279A5DC for ; Thu, 24 Jun 2021 13:20:37 +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 81DF14677F for ; Thu, 24 Jun 2021 13:20:37 +0200 (CEST) From: Stoiko Ivanov To: pve-devel@lists.proxmox.com Date: Thu, 24 Jun 2021 13:20:25 +0200 Message-Id: <20210624112025.1338929-1-s.ivanov@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.635 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 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 pve-kernel-meta] proxmox-boot: redirect stdout in update-grub snippet 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: Thu, 24 Jun 2021 11:20:38 -0000 update-grub (via grub-mkconfig) generates the grub configuration by concatenating the output of each snippet (from /etc/grub.d). We need to redirect the output of `proxmox-boot-tool refresh` to not end up with a syntactically wrong config in /boot/grub/grub.cfg (which is not used in any case) quickly tested with a test-installation of mine Signed-off-by: Stoiko Ivanov --- proxmox-boot/000_proxmox_boot_header | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxmox-boot/000_proxmox_boot_header b/proxmox-boot/000_proxmox_boot_header index 597f65a..106273e 100755 --- a/proxmox-boot/000_proxmox_boot_header +++ b/proxmox-boot/000_proxmox_boot_header @@ -18,7 +18,7 @@ if proxmox-boot-tool status --quiet; then warn "W: Running: 'proxmox-boot-tool refresh'" warn "" - proxmox-boot-tool refresh + proxmox-boot-tool refresh > /dev/null fi fi -- 2.30.2