Skip to content

Commit

Permalink
2024-04-24 install script - master branch
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
Paraphraser committed Apr 23, 2024
1 parent 7a05f32 commit f0ec9fb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,8 @@ sudo rm -rf "$IOTSTACK_MENU_VENV_DIR"
#----------------------------------------------------------------------

# set cmdline options (if possible - Raspberry Pi dependency)
TARGET="/boot/cmdline.txt"
TARGET="/boot/firmware/cmdline.txt"
[ -e "$TARGET" ] || TARGET="/boot/cmdline.txt"
if [ -e "$TARGET" ] ; then
echo -e -n "\nChecking Raspberry Pi boot-time options - "
unset APPEND
Expand Down

0 comments on commit f0ec9fb

Please sign in to comment.