From f07458737c68af551d686e0144851ae646bb6da5 Mon Sep 17 00:00:00 2001 From: Joel Low Date: Sat, 18 Apr 2026 10:10:05 +0800 Subject: [PATCH] initramfs: fix incorrect variable rename Fixes regression introduced by 61ab032ae0391bce38aef1e43b5b930724ecdb55. Reviewed-by: Brian Behlendorf Co-Authored-By: Claude Sonnet 4.6 Signed-off-by: Joel Low Closes #18442 --- contrib/initramfs/scripts/zfs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/contrib/initramfs/scripts/zfs b/contrib/initramfs/scripts/zfs index 9d2c086ff..06eb0e295 100644 --- a/contrib/initramfs/scripts/zfs +++ b/contrib/initramfs/scripts/zfs @@ -674,11 +674,11 @@ setup_snapshot_booting() then # Snapshot does not exist (...@ ?) # ask the user for a snapshot to use. - snap="$(ask_user_snap "${_boot_snap%%@*}")" + _boot_snap="$(ask_user_snap "${_boot_snap%%@*}")" fi - # Separate the full snapshot ('${snap}') into it's filesystem and - # snapshot names. Would have been nice with a split() function.. + # Separate the full snapshot ('${_boot_snap}') into its filesystem and + # snapshot names. Would have been nice with a split() function. _rootfs="${_boot_snap%%@*}" _snapname="${_boot_snap##*@}" ZFS_BOOTFS="${_rootfs}_${_snapname}" @@ -693,7 +693,7 @@ setup_snapshot_booting() -r -Sname "${ZFS_BOOTFS}")" for fs in ${_filesystems} do - destroy_fs "${_boot_snap}" + destroy_fs "${fs}" done fi fi