From 4af8e28a59489f855bd3d035779de58bfaaf7fe5 Mon Sep 17 00:00:00 2001 From: Turbo Fredriksson Date: Thu, 4 Dec 2025 14:02:16 +0000 Subject: [PATCH] Remove unnecessary sourcing of variables. The file `/etc/default/zfs` is already sourced by the `/etc/zfs/zfs-functions`, so no need to source it again. Reviewed by: Brian Behlendorf Reviewed-by: Rob Norris Signed-off-by: Turbo Fredriksson Closes #18000 --- contrib/initramfs/scripts/zfs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/contrib/initramfs/scripts/zfs b/contrib/initramfs/scripts/zfs index 390fa89df..8ff014f4b 100644 --- a/contrib/initramfs/scripts/zfs +++ b/contrib/initramfs/scripts/zfs @@ -708,10 +708,6 @@ mountroot() # Run the pre-mount scripts from /scripts/local-top. pre_mountroot - # ------------ - # Source the default setup variables. - [ -r '/etc/default/zfs' ] && . /etc/default/zfs - # ------------ # Support debug option if grep -qiE '(^|[^\\](\\\\)* )(zfs_debug|zfs\.debug|zfsdebug)=(on|yes|1)( |$)' /proc/cmdline