ensure_uid_root () {
  if [ "$(id -u)" != 0 ]; then
    echo "Not root; aborting." >&2
    exit 1
  fi
}
