DietPi is not an own OS or Debian destro. It’s a set of bash script on top of Debian/Raspbian. There you can’t use /etc/os-release
to detect a running DietPi system. Best is to check for the availibility of our scripts or current DietPi version /boot/dietpi/.version
1 Like