Bug #918
closedpibox-version should update on each boot
100%
Description
In order to support moving an SD card between devices, the pibox-version file should update it's last line to show that hardware it's currently running on, if different than what is already in the file.
Updated by Hammel over 1 year ago
- Severity changed from 03 - Medium to 01 - Critical
Updated by Hammel over 1 year ago
- Status changed from New to In Progress
- % Done changed from 0 to 20
This should change so that each line has an identifier, as in:
VERSION: PiBox 2.0 HW: rpi2 BUILD: Fri Aug 4 20:58:17 UTC 2023 MODEL: Raspberry Pi 3 Model B Rev 1.2
This way we can avoid changes by line number.
I'm not sure what else uses this. The following command from just above all my sandboxes didn't find it referenced anywhere outside of the pibox build itself.
find pi* ironman appmgr launcher lcdshow libpibox metabuild musicfe pmsui pnc videofe -type f -exec grep -l "pibox-version" {} \;
So for now just make sure the dev system build skeleton handles these changes.
$ cdx
$ find * -type f -exec grep -l "pibox-version" {} \;
configs/buildroot.mk
src/buildroot/skeleton/etc/init.d/firstboot
Updated by Hammel over 1 year ago
- % Done changed from 20 to 50
It should be noted that this change isn't really necessary unless we change the config.txt too, since RPi3 optimizations exist there that prevent an RPi3 SD from being moved to an RPi2.
If you remove those optimizations then the SD will boot.
Updated by Hammel over 1 year ago
- Status changed from In Progress to Closed
- % Done changed from 50 to 100
Changes tested on hardware (both with and without RPi3 optimizations) and they are working.
Changes committed and pushed.
Closing issue.