rpi-clone icon indicating copy to clipboard operation
rpi-clone copied to clipboard

Recent RPi OS version aren't correctly detected

Open martignoni opened this issue 2 years ago • 5 comments
trafficstars

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.

martignoni avatar Jan 15 '23 18:01 martignoni

Added a fix on my branch

framps avatar Jan 15 '23 18:01 framps

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

martignoni avatar Jan 15 '23 19:01 martignoni

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.

J-Luc16 avatar Feb 13 '23 17:02 J-Luc16

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.

martignoni avatar Feb 13 '23 17:02 martignoni

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.

J-Luc16 avatar Feb 13 '23 18:02 J-Luc16