Skip to content

Commit 470fef7

Browse files
committed
system: fix Raspbian detection on Bookworm
Bookworm has changed the RP repo location to 'archive.raspberryp.com', due to a larger RPF operation to leave the .org just for the Foundation. To detect whether we're running on RasPI OS, make sure we check for the new domain in the output from `apt-cache`.
1 parent 06f8534 commit 470fef7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scriptmodules/system.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ function get_os_version() {
190190

191191
# 64bit Raspberry Pi OS identifies as Debian, but functions (currently) as Raspbian
192192
# we will check package sources and set to Raspbian
193-
if isPlatform "aarch64" && apt-cache policy | grep -q "archive.raspberrypi.org"; then
193+
if isPlatform "aarch64" && apt-cache policy | grep -qE "archive.raspberrypi.(com|org)"; then
194194
__os_id="Raspbian"
195195
fi
196196

0 commit comments

Comments
 (0)