Recent RPi OS version aren't correctly detected #151

Open
opened 2023-01-15 19:39:46 +01:00 by martignoni · 5 comments
martignoni commented 2023-01-15 19:39:46 +01:00 (Migrated from github.com)

Logic to detect RPi OS version has changed and should be taken in account. Notably

cat /etc/os-release | grep PRETTY

doesn't return "Raspbian" string any more.

Logic to detect RPi OS version has changed and should be taken in account. Notably ``` cat /etc/os-release | grep PRETTY ``` doesn't return "Raspbian" string any more.
framps commented 2023-01-15 19:53:54 +01:00 (Migrated from github.com)

Added a fix on my branch

Added a fix on [my branch](https://github.com/framps/rpi-clone)
martignoni commented 2023-01-15 20:00:24 +01:00 (Migrated from github.com)

See https://github.com/billw2/rpi-clone/pull/152 (more generic fix IMHO).

See https://github.com/billw2/rpi-clone/pull/152 (more generic fix IMHO).
J-Luc16 commented 2023-02-13 18:27:50 +01:00 (Migrated from github.com)

I am surprised, this is what is returned by a raspbian Bullseye :

cat /etc/os-release

PRETTY_NAME="Raspbian GNU/Linux 11 (bullseye)"
NAME="Raspbian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye

RPI_CLONE never stopped working for me, also with the bullseye.

I am surprised, this is what is returned by a raspbian Bullseye : cat /etc/os-release PRETTY_NAME="Raspbian GNU/Linux 11 (bullseye)" NAME="Raspbian GNU/Linux" VERSION_ID="11" VERSION="11 (bullseye)" VERSION_CODENAME=bullseye RPI_CLONE never stopped working for me, also with the bullseye.
martignoni commented 2023-02-13 18:53:05 +01:00 (Migrated from github.com)

This seems to be a 32bit version (what date?)

We have to take in account 64bit of RPiOS version too. The detection logic should work for both 32bit and 64bit version.

This seems to be a 32bit version (what date?) We have to take in account 64bit of RPiOS version too. The detection logic should work for both 32bit and 64bit version.
J-Luc16 commented 2023-02-13 19:12:20 +01:00 (Migrated from github.com)

Built very recently (january). I understand your concern about the 32/64 bits, I am not skilled enough to give my advice.
FYI it's the latest kernel (6.1), I don't know if it matters in the answer to os-release.
Thanks for all.

Built very recently (january). I understand your concern about the 32/64 bits, I am not skilled enough to give my advice. FYI it's the latest kernel (6.1), I don't know if it matters in the answer to _os-release_. Thanks for all.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Lerking/rpi-clone#151
No description provided.