Apparently Nexenta has this tool named "apt-clone" which does a ZFS snapshot of your system
before installing the .deb. Apparently it can even recover from a bad libc or whatever, since apt-
clone adds an item to your grub menu to boot from the ZFS snapshot. Is that now awesome? It
sounds great. I should try it sometime.