initramfs: fix incorrect variable rename

Fixes regression introduced by 61ab032ae0.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: Joel Low <joel@joelsplace.sg>
Closes #18442
This commit is contained in:
Joel Low
2026-04-18 10:10:05 +08:00
committed by Tony Hutter
parent 38501e1821
commit f07458737c
+4 -4
View File
@@ -674,11 +674,11 @@ setup_snapshot_booting()
then
# Snapshot does not exist (...@<null> ?)
# 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