From e8103d4288d389d551dc09e1db7f11dffcafd10f Mon Sep 17 00:00:00 2001 From: Christoph Heiss Date: Tue, 7 Nov 2023 13:20:50 +0100 Subject: [PATCH] install: use correct variable names in zfs_setup_module_conf() 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 --- Proxmox/Install.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Proxmox/Install.pm b/Proxmox/Install.pm index 693ab15..c4b0700 100644 --- a/Proxmox/Install.pm +++ b/Proxmox/Install.pm @@ -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") -- 2.39.2