--- /etc/zfs/zfs-functions 2016-04-06 17:52:08.000000000 +0200 +++ /target/etc/zfs/zfs-functions 2016-04-15 13:32:04.512421085 +0200 @@ -1081,8 +1081,8 @@ # Get all snapshots, recursivly (might need to clone /usr, /var etc # as well). - for s in $("${ZFS}" list -H -oname -tsnapshot -r "${rootfs}" | \ - grep "${snapname}") + for s in $(IFS= "${ZFS}" list -H -oname -tsnapshot -r "${rootfs}" | \ + grep "@${snapname}$") do if grep -qiE '(^|[^\\](\\\\)* )(rollback)=(on|yes|true|1)( |$)' /proc/cmdline then