Unless you're running FreeBSD (or Illumos) with ZFS and Boot Environments, in which case you'd just select a backup boot environment and continue working :-) Probably without your home directory though, as that is usually excluded from boot environments. But you can set them up however you want.
But if you're running Linux (before this update) on a laptop with terrible piece of shit firmware, you'd end up with a brick.
P.S. found a cool post about rm -rf / in my bookmarks: https://lambdaops.com/rm-rf-remains/ – you can recover a running rm'd Linux machine by using a running shell and /dev/tcp :D
Awesome. This dynamic loading of bash plugins is mad.
I once tried 'format C:' on a Windows 10 laptop I didn't care about and I just got a boring error message.