[BUG] Raspbery Pi OS no longer shows OS version

Read the FAQ first

  • I have checked the FAQ but the issue is not covered

Description

Previously, the OS string showed the version too, for example v2.40.4:

        _,met$$$$$gg.          pi@rpi5
     ,g$$$$$$$$$$$$$$$P.       -------
   ,g$$P""       """Y$$.".     OS: Debian GNU/Linux 13 (trixie) aarch64
  ,$$P'              `$$$.     Host: Raspberry Pi 5 Model B Rev 1.1
',$$P       ,ggs.     `$$b:    Kernel: Linux 6.12.47+rpt-rpi-2712
`d$$'     ,$P"'   .    $$$     Uptime: 2 days, 6 hours, 41 mins
 $$P      d$'     ,    $$P     Packages: 670 (dpkg)
 $$:      $$.   -    ,d$$'     Shell: bash 5.2.37
 $$;      Y$b._   _,d$P'       Terminal: /dev/pts/0
 Y$$.    `.`"Y$$$$P"'          CPU: BCM2712 (4) @ 2.40 GHz
 `$$b      "-.__               GPU: Broadcom bcm2712-vc6 [Integrated]
  `Y$$b                        Memory: 685.47 MiB / 15.84 GiB (4%)
   `Y$$.                       Swap: 0 B / 2.00 GiB (0%)
     `$$b.                     Disk (/): 4.42 GiB / 116.32 GiB (4%) - ext4
       `Y$$b.                  Disk (/var/log): 64.38 MiB / 487.21 MiB (13%) - ext4
         `"Y$b._               Local IP (eth0): XXX
             `""""             Locale: en_US.UTF-8

Recent releases no longer show this info:

   `.::///+:/-.        --///+//-:`     pi@rpi5
 `+oooooooooooo:   `+oooooooooooo:     -------
  /oooo++//ooooo:  ooooo+//+ooooo.     OS: Raspberry Pi OS aarch64
  `+ooooooo:-:oo-  +o+::/ooooooo:      Host: Raspberry Pi 5 Model B Rev 1.1
   `:oooooooo+``    `.oooooooo+-       Kernel: Linux 6.12.47+rpt-rpi-2712
     `:++ooo/.        :+ooo+/.`        Uptime: 2 days, 6 hours, 42 mins
        ...`  `.----.` ``..            Packages: 670 (dpkg)
     .::::-``:::::::::.`-:::-`         Shell: bash 5.2.37
    -:::-`   .:::::::-`  `-:::-        Terminal: /dev/pts/0
   `::.  `.--.`  `` `.---.``.::`       CPU: BCM2712 (4) @ 2.40 GHz
       .::::::::`  -::::::::` `        GPU: Broadcom bcm2712-vc6 [Integrated]
 .::` .:::::::::- `::::::::::``::.     Memory: 694.42 MiB / 15.84 GiB (4%)
-:::` ::::::::::.  ::::::::::.`:::-    Swap: 0 B / 2.00 GiB (0%)
::::  -::::::::.   `-::::::::  ::::    Disk (/): 4.41 GiB / 116.32 GiB (4%) - ext4
-::-   .-:::-.``....``.-::-.   -::-    Disk (/var/log): 64.39 MiB / 487.21 MiB (13%) - ext4
 .. ``       .::::::::.     `..`..     Local IP (eth0): XXX
   -:::-`   -::::::::::`  .:::::`      Locale: en_US.UTF-8
   :::::::` -::::::::::` :::::::.
   .:::::::  -::::::::. ::::::::
    `-:::::`   ..--.`   ::::::.
      `...`  `...--..`  `...`
            .::::::::::
             `.-::::-`

I think it would be pretty valuable to show the Debian version too, preferably DEBIAN_VERSION_FULL:

pi@rpi5:~ $  cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 13 (trixie)"
NAME="Debian GNU/Linux"
VERSION_ID="13"
VERSION="13 (trixie)"
VERSION_CODENAME=trixie
DEBIAN_VERSION_FULL=13.1
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

Also, while at it, maybe it would make sense to trim/collapse whitespaces from device names? For example I have this:

{
  "name": " USB  SanDisk 3.2Gen1",
  "devPath": "/dev/sda",
  "bytesRead": 0,
  "bytesWritten": 0,
  "readCount": 0,
  "writeCount": 0
}

Version used

fastfetch 2.54.0 (aarch64)

Bug prevalence

Always

Regression

Yes

Installation

GitHub Releases

Package manager

apt

Screenshots

No response

Configuration

System information

System information

Features built-in

threads
vulkan
wayland
xcb-randr
xrandr
drm
drm_amdgpu
gio
dconf
dbus
imagemagick7
imagemagick6
zlib
sqlite3
rpm
egl
glx
opencl
libpulse
libddcutil
libelf
libzfs
Directx Headers
linux/videodev2
linux/wireless
Embedded pciids