]> git.proxmox.com Git - pve-installer.git/commitdiff
low level installer: only log about creating SWAP if there's any
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 23 Apr 2024 17:22:01 +0000 (19:22 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 23 Apr 2024 17:22:04 +0000 (19:22 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Proxmox/Install.pm

index 8cac0ae36236b7a2b5e2327385c2b9618779ff03..2541bc4520c09c866348aaca23f209283f63492e 100644 (file)
@@ -824,8 +824,8 @@ sub extract_data {
                die "unable to set zfs properties\n";
        }
 
-       update_progress(0.04, 0, $maxper, "create swap space");
        if ($swapfile) {
+           update_progress(0.04, 0, $maxper, "create swap space");
            syscmd("mkswap -f $swapfile") == 0 ||
                die "unable to create swap space\n";
        }