Skip to content

Commit

Permalink
Future3/lift 64bit restriction (#2425)
Browse files Browse the repository at this point in the history
* Remove 64bit check in installer script

* Check presence of raspi.list in raspian check

* fix: update check for debian derived os. integrate checks

RPiOS: 32-bit = raspbian, 64-bit = debian

---------

Co-authored-by: Alvin Schiller <[email protected]>
  • Loading branch information
mittler-works and AlvinSchiller authored Nov 7, 2024
1 parent a216c78 commit 32798da
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 33 deletions.
18 changes: 3 additions & 15 deletions installation/includes/02_helpers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -75,23 +75,11 @@ get_architecture() {
echo $arch
}

is_raspbian() {
if [[ $( . /etc/os-release; printf '%s\n' "$ID"; ) == *"raspbian"* ]]; then
echo true
else
echo false
fi
}

get_debian_version_number() {
source /etc/os-release
echo "$VERSION_ID"
}

_get_boot_file_path() {
local filename="$1"
if [ "$(is_raspbian)" = true ]; then
local debian_version_number=$(get_debian_version_number)
local os_release_id=$( . /etc/os-release; printf '%s\n' "$ID"; )
if [[ "$os_release_id" == *"raspbian"* ]] || [[ "$os_release_id" == *"debian"* ]]; then
local debian_version_number=$( . /etc/os-release; printf '%s\n' "$VERSION_ID"; )

# Bullseye and lower
if [ "$debian_version_number" -le 11 ]; then
Expand Down
18 changes: 0 additions & 18 deletions installation/install-jukebox.sh
Original file line number Diff line number Diff line change
Expand Up @@ -86,23 +86,6 @@ Check install log for details:"
exit 1
}

# Check if current distro is a 32-bit version
# Support for 64-bit Distros has not been checked (or precisely: is known not to work)
# All Raspberry Pi OS versions report as machine "armv6l" or "armv7l", if 32-bit (even the ARMv8 cores!)
_check_os_type() {
local os_type=$(uname -m)

print_lc "\nChecking OS type '$os_type'"

if [[ $os_type == "armv7l" || $os_type == "armv6l" ]]; then
print_lc " ... OK!\n"
else
print_lc "ERROR: Only 32-bit operating systems are supported. Please use a 32-bit version of Raspberry Pi OS!"
print_lc "For Pi 4 models or newer running a 64-bit kernels, also see this: https://github.com/MiczFlor/RPi-Jukebox-RFID/issues/2041"
exit 1
fi
}

_check_existing_installation() {
if [[ -e "${INSTALLATION_PATH}" ]]; then
print_lc "
Expand Down Expand Up @@ -154,7 +137,6 @@ _load_sources() {
_setup_logging

### CHECK PREREQUISITE
_check_os_type
_check_existing_installation

### RUN INSTALLATION
Expand Down

0 comments on commit 32798da

Please sign in to comment.