Skip to content

Commit f0ec9fb

Browse files
committed
2024-04-24 install script - master branch
The installer script checks for `/boot/cmdline.txt`, assumes its presence implies the Raspberry Pi and proceeds to add options to it (to support `docker stats`). With Bookworm, `/boot/cmdline.txt` is a read-me and the actual boot options file is at `/boot/firmware/cmdline.txt`. This mod checks for the latter first, then falls back to checking for the former. Signed-off-by: Phill Kelley <[email protected]>
1 parent 7a05f32 commit f0ec9fb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

install.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,8 @@ sudo rm -rf "$IOTSTACK_MENU_VENV_DIR"
403403
#----------------------------------------------------------------------
404404

405405
# set cmdline options (if possible - Raspberry Pi dependency)
406-
TARGET="/boot/cmdline.txt"
406+
TARGET="/boot/firmware/cmdline.txt"
407+
[ -e "$TARGET" ] || TARGET="/boot/cmdline.txt"
407408
if [ -e "$TARGET" ] ; then
408409
echo -e -n "\nChecking Raspberry Pi boot-time options - "
409410
unset APPEND

0 commit comments

Comments
 (0)