]> git.proxmox.com Git - pve-installer.git/commitdiff
install: use correct variable names in zfs_setup_module_conf()
authorChristoph Heiss <c.heiss@proxmox.com>
Tue, 7 Nov 2023 12:20:50 +0000 (13:20 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 7 Nov 2023 15:40:15 +0000 (16:40 +0100)
That's what happens when you do some last-minute variable renaming and
trust that nothing broke ..

Fixes: 42aa2fa ("fix #4829: install: add new ZFS `arc_max` setup option")
Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
Proxmox/Install.pm

index 693ab157f0f3c3bf3827db034c35a5ce9f2d6ab2..c4b0700ed6712e72da652804ba993e72f973c9af 100644 (file)
@@ -296,8 +296,8 @@ sub get_zfs_raid_setup {
 my sub zfs_setup_module_conf {
     my ($targetdir) = @_;
 
-    my $arc_max = Proxmox::Install::Config::get_zfs_opt('arc_max');
-    my $arc_max_mib = Proxmox::Install::RunEnv::clamp_zfs_arc_max($arc_max) * 1024 * 1024;
+    my $arc_max_mib = Proxmox::Install::Config::get_zfs_opt('arc_max');
+    my $arc_max = Proxmox::Install::RunEnv::clamp_zfs_arc_max($arc_max_mib) * 1024 * 1024;
 
     if ($arc_max > 0) {
        file_write_all("$targetdir/etc/modprobe.d/zfs.conf", "options zfs zfs_arc_max=$arc_max\n")