From 0519f32649781ecada7c880e4bd0e1400f6b80c2 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Tue, 23 Apr 2024 19:16:05 +0200 Subject: [PATCH] low level installer: avoid undef warning in progress log when using ZFS The $rootdev variable is not set in the ZFS branch, and ZFS is not mounted here, so just move the progress update inside the non-ZFS branch. Reported-by: Fiona Ebner Signed-off-by: Thomas Lamprecht --- Proxmox/Install.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Proxmox/Install.pm b/Proxmox/Install.pm index 449d21c..8cac0ae 100644 --- a/Proxmox/Install.pm +++ b/Proxmox/Install.pm @@ -848,11 +848,12 @@ sub extract_data { create_filesystem($rootdev, 'root', $filesys, 0.05, $maxper, 0, 1); } - update_progress(1, 0.05, $maxper, "mounting target $rootdev"); if ($use_zfs) { # do nothing } else { + update_progress(1, 0.05, $maxper, "mounting target $rootdev"); + my $mount_opts = 'noatime'; $mount_opts .= ',nobarrier' if $use_btrfs || $filesys =~ /^ext\d$/; -- 2.39.5