Thanks for explanation. I'm going to push the fix, touching /boot/do_purge_kernels only if $1 is greater than 1 in post.sh.