jbrzusto / sensorgnome

master control process for a sensorgnome receiver
GNU General Public License v2.0
1 stars 2 forks source link

2018-02-14 update breaks SG-Pi #57

Closed jbrzusto closed 6 years ago

jbrzusto commented 6 years ago

Installing this update bricks the Pi, requiring a reinstallation of the 2017-04-30 release onto the SD card. Thanks to Arne Andersson for reporting this.

Etiology

In order to provide a visual change to the version shown on the web interface upon update installation, the 2nd version of this update included a copy of SENSORGNOME_VERSION.TXT. However due to my lack of understanding of how GNU tar works, the following portion of the update tar archive:

drwxrwxr-x root/root         0 2018-03-07 20:38 ./boot/
drwxrwxr-x root/root         0 2018-03-07 20:40 ./boot/uboot/
-rw-rw-r-- root/root        47 2018-03-07 20:43 ./boot/uboot/SENSORGNOME_VERSION.TXT

overwrote the existing symlink at /boot -> /dev/sdcard, rather than following it when unpacking the file.

Fix

A new update will be provided that places SENSORGNOME_VERSION.TXT in the hierarchy /dev/sdcard/uboot, which does not involve any symlinks. A later update will add the -h option to the tar command that installs updates, so that we don't run into a similar problem again.

jbrzusto commented 6 years ago

closed by update of 2018-03-29