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 81A761FF162 for <inbox@lore.proxmox.com>; Mon, 7 Apr 2025 15:21:56 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id E38573ED14; Mon, 7 Apr 2025 15:21:52 +0200 (CEST) From: Dominik Csapak <d.csapak@proxmox.com> To: pve-devel@lists.proxmox.com Date: Mon, 7 Apr 2025 15:21:48 +0200 Message-Id: <20250407132148.1051289-1-d.csapak@proxmox.com> X-Mailer: git-send-email 2.39.5 MIME-Version: 1.0 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.022 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: [pve-devel] [PATCH] btrfs: use proxmox-boot-tool to sync ESPs for RAID installs 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> 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> instead of just having the first one mounted. This is done by handling it the same as ZFS regarding the ESP. This fixes an issue where installing with BTRFS showed a 'Boot Option Restoration' prompt after boot. Signed-off-by: Dominik Csapak <d.csapak@proxmox.com> --- Proxmox/Install.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Proxmox/Install.pm b/Proxmox/Install.pm index 068b22c..cb6c502 100644 --- a/Proxmox/Install.pm +++ b/Proxmox/Install.pm @@ -1144,7 +1144,7 @@ sub extract_data { # Note: this is required by current grub, but really dangerous, because # vfat does not have journaling, so it triggers manual fsck after each crash # so we only mount /boot/efi if really required (efi systems). - if ($run_env->{boot_type} eq 'efi' && !$use_zfs) { + if ($run_env->{boot_type} eq 'efi' && !($use_zfs || $use_btrfs)) { if (scalar(@$bootdevinfo)) { my $di = @$bootdevinfo[0]; # simply use first disk @@ -1368,7 +1368,7 @@ _EOD foreach my $di (@$bootdevinfo) { my $dev = $di->{devname}; - if ($use_zfs) { + if ($use_zfs || $use_btrfs) { prepare_proxmox_boot_esp($di->{esp}, $targetdir, $run_env->{secure_boot}); } else { if (!$native_4k_disk_bootable) { -- 2.39.5 _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel