if ( cards list | grep pam ); then
  if [ ! -e /etc/machine-id ]; then
    systemd-machine-id-setup
  else
    echo "/etc/machine-id already exists, nothing to do"
  fi
fi
