Cant force install on RPI Zero 2 W?
- @david
Hey guys,
Trying an install on RPI Zero 2 W, Bullseye 32 Bit
printenv does show FORCE_INSTALL=1 as set
Doesnt seem to actually force the install? What am I missing here?
curl
--silent
--show-error
https://raw.githubusercontent.com/tiny-pilot/tinypilot/master/get-tinypilot.sh |
bash - &&
sudo reboot
- HAS_PRO_INSTALLED=0
++ dirname bash - SCRIPT_DIR=.
- [[ . = . ]]
- SCRIPT_DIR=/opt/tinypilot
- readonly SCRIPT_DIR
- readonly TINYPILOT_README=/opt/tinypilot/README.md
- TINYPILOT_README=/opt/tinypilot/README.md
- [[ -f /opt/tinypilot/README.md ]]
- readonly HAS_PRO_INSTALLED
- [[ 0 = 1 ]]
- readonly LEGACY_INSTALLER_DIR=/opt/tinypilot-updater
- LEGACY_INSTALLER_DIR=/opt/tinypilot-updater
- readonly RAMDISK_SIZE_MIB=560
- RAMDISK_SIZE_MIB=560
++ free --mebi
++ grep --fixed-strings Mem:
++ tr --squeeze-repeats ' '
++ cut --delimiter ' ' --fields 7 - AVAILABLE_MEMORY_MIB=328
- readonly AVAILABLE_MEMORY_MIB
- INSTALLER_DIR=/mnt/tinypilot-installer
- trap clean_up EXIT
- (( 328 >= 560 ))
++ mktemp --tmpdir=/var/tmp --directory - INSTALLER_DIR=/var/tmp/tmp.xBQD5chd7H
- readonly INSTALLER_DIR
- readonly TMPDIR=/var/tmp/tmp.xBQD5chd7H/tmp
- TMPDIR=/var/tmp/tmp.xBQD5chd7H/tmp
- export TMPDIR
- sudo mkdir /var/tmp/tmp.xBQD5chd7H/tmp
- readonly BUNDLE_FILE=/var/tmp/tmp.xBQD5chd7H/bundle.tgz
- BUNDLE_FILE=/var/tmp/tmp.xBQD5chd7H/bundle.tgz
++ curl https://gk.tinypilotkvm.com/community/download/latest --location --output /var/tmp/tmp.xBQD5chd7H/bundle.tgz --write-out '%{http_code}' --silent - HTTP_CODE=200
- readonly HTTP_CODE
- [[ 200 != \2\0\0 ]]
- sudo tar --gunzip --extract --file /var/tmp/tmp.xBQD5chd7H/bundle.tgz --directory /var/tmp/tmp.xBQD5chd7H
- sudo chown root:root --recursive /var/tmp/tmp.xBQD5chd7H
- [[ 0 -eq 1 ]]
- pushd /var/tmp/tmp.xBQD5chd7H
/var/tmp/tmp.xBQD5chd7H ~ - sudo TMPDIR=/var/tmp/tmp.xBQD5chd7H/tmp ./install
- grep -q boot=overlay /proc/cmdline
- [[ -n '' ]]
- grep --quiet '^Model\s*: Raspberry Pi 4 Model B' /proc/cpuinfo
- echo 'You are trying to install on unsupported hardware.'
You are trying to install on unsupported hardware. - echo 'Visit https://github.com/tiny-pilot/tinypilot/ for more details.'
Visit https://github.com/tiny-pilot/tinypilot/ for more details. - exit 1
- clean_up
- sudo umount --lazy /var/tmp/tmp.xBQD5chd7H
umount: /var/tmp/tmp.xBQD5chd7H: not mounted. - true
- sudo rm -rf /opt/tinypilot-updater /var/tmp/tmp.xBQD5chd7H
- In reply toUltimateUser⬆:David @david2025-01-14 16:05:03.767Z
Hi @UltimateUser,
I'm sorry you're running into this issue forcing the install on your Pi Zero 2 W.
It looks like there's a bug with the newer
FORCE_INSTALL
method that's preventing the install here. I've created a GitHub issue to look into this. It looks like the issue is the environment variable isn't set due to the way we're executing the script (by piping the script into a newbash
instance) and because the environment variable isn't set whenget-tinypilot.sh
runsinstall
.As a work around, could you download the
get-tinypilot.sh
script on your Pi Zero with the following command:wget https://raw.githubusercontent.com/tiny-pilot/tinypilot/master/get-tinypilot.sh && \ chmod +x get-tinypilot.sh
Edit the following lines (using
nano get-tinypilot.sh
)sudo \ TMPDIR="${TMPDIR}" \ ./install
To:
sudo \ TMPDIR="${TMPDIR}" \ FORCE_INSTALL=1 ./install
And then run it with
./get-tinypilot.sh
. That should force the install in this situation.I hope that helps! Please let me know if you have any questions.