File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -248,7 +248,19 @@ function _mapPackage() {
248
248
# handle our custom package alias LINUX-HEADERS
249
249
LINUX-HEADERS)
250
250
if isPlatform " rpi" ; then
251
- pkg=" raspberrypi-kernel-headers"
251
+ if [[ " $__os_debian_ver " -lt 12 ]]; then
252
+ pkg=" raspberrypi-kernel-headers"
253
+ else
254
+ # on RaspiOS bookworm and later, kernel packages are separated by arch and model
255
+ isPlatform " rpi0" || isPlatform " rpi1" && pkg=" linux-headers-rpi-v6"
256
+ if isPlatform " 32bit" ; then
257
+ isPlatform " rpi2" || isPlatform " rpi3" && pkg=" linux-headers-rpi-v7"
258
+ isPlatform " rpi4" && pkg=" linux-headers-rpi-v7l"
259
+ else
260
+ isPlatform " rpi3" || isPlatform " rpi4" && pkg=" linux-headers-rpi-v8"
261
+ isPlatform " rpi5" && pkg=" linux-headers-rpi-2712"
262
+ fi
263
+ fi
252
264
elif [[ -z " $__os_ubuntu_ver " ]]; then
253
265
pkg=" linux-headers-$( uname -r) "
254
266
else
You can’t perform that action at this time.
0 commit comments