fastfetch: [BUG] DietPi incorrectly displayed as Raspberry Pi OS by default
Read the FAQ first
- I have checked the FAQ but the issue is not covered
Description
I am using the latest version of DietPi (DietPi 9.13 based on Debian 12).
Previously, in Fastfetch 2.45.0, the OS module displayed Debian GNU/Linux by default.
However, since version 2.46.0, it now shows Raspberry Pi OS.
In my opinion, neither of these options is accurate: I think it would be best to display DietPi (it already has a built-in logo in Fastfetch, too).
If that’s not feasible, Debian GNU/Linux would be a more accurate default representation than Raspberry Pi OS (because DietPi is strongly based on Debian).
Version used
2.46.0
Bug prevalence
Always
Regression
Yes
Installation
GitHub Releases
Screenshots
Fastfetch 2.45.0
Fastfetch 2.46.0
System information
{
"type": "OS",
"result": {
"buildID": "",
"codename": "bookworm",
"id": "raspbian",
"idLike": "debian",
"name": "Raspberry Pi OS",
"prettyName": "Raspberry Pi OS",
"variant": "",
"variantID": "",
"version": "12 (bookworm)",
"versionID": "12"
},
"stat": 0.15441083908081055
},
Features built-in
threads
vulkan
wayland
xcb-randr
xrandr
drm
drm_amdgpu
gio
dconf
dbus
imagemagick7
imagemagick6
chafa
zlib
xfconf
sqlite3
rpm
egl
glx
opencl
libpulse
libddcutil
libelf
libzfs
Directx Headers
linux/videodev2
linux/wireless
Embedded pciids
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 22 (10 by maintainers)
Commits related to this issue
- OS (Linux): detect DietPi Fix #1816 — committed to fastfetch-cli/fastfetch by CarterLi a year ago
- OS (Linux): improve RPIOS detection Ref: https://github.com/fastfetch-cli/fastfetch/issues/1816#issuecomment-2996316164 — committed to CarterLi/fastfetch by CarterLi a year ago
I actually aim to move
/boot/dietpi/.version(all content of/boot/dietpi) into generic FHS directories. We can inform you early once this is really done. If there is seen enough value in differentiating a DietPi system from Debian (main repo), we will think about a location and format of an identifier than follows common standards as close as possible, to remain until the end of time:/etc/os-releasemust stay reserved for thebase-filespackage of the main repo (Debian). Messing with it will only cause problems for scripts/installers/Makefiles/toolchain/whatever wants to know which packages, toolchains and their versions to expect. In this regards, DietPi is Debian, just like 64-bit Raspberry Pi OS is Debian, period./etc/debian_version, Ubuntu/etc/ubuntu_version, not sure whether this is a an exclusive APT distro thing./etc/rpi-issuehas been a quite stable identifier for RPi OS images generated withpi-gen, since it exists, indeed better than relying on some particular package or kernel suffix, which can change./etc/armbian-release. I know they also ship an ownbase-filespackage with their additional repo (for kernel etc), which setsPRETTY_NAMEin/etc/os-releasedifferently. But I personally don’t think that messing with this package and file is a good idea, as long as one uses the Debian APT repo./etc/dietpi_versionwith a single line version string like (and in addition to)/etc/debian_versionmakes most sense, as identifier, and to make obtaining the version as easy as it gets.Anyway, thanks for implementing DietPi detection even with version string 👍.
/etc/lsb-releaseis shipped/created by thelsb-releasepackage of the main repo, if installed, so this is not something we can (or want to) touch either. It would need to be something that is never shipped by any main distro package, but added only by derivatives without an own full repository. Similarly we cannot touch/etc/os-release. I am not gonna override a base package shipped by the Debian repo, or a file shipped by such.Ubuntu has a full own repo, hence ships
base-filesandlsb-releaseby itself, can control the content without messing with a package of someone else, cause conflicts, break auto-update of config files or any such. For them,/etc/os-releaseprovides sufficient variables to make clear it is based on Debian, but an own distro with a complete own repository, which is the important info any scripter etc needs to now to do right decisions. Without causing more problems than solving, we, who only add a supplementary APT repo, can only add new files, not replace or add to any file that is part of Debian.