davidferguson / pibakery

The blocks based, easy to use setup tool for Raspberry Pi
http://www.PiBakery.org
GNU General Public License v3.0
1.49k stars 147 forks source link

images.json keeps resetting #121

Open szymex73 opened 6 years ago

szymex73 commented 6 years ago

So, I downloaded Raspbian lite from the repo and I modified the images.json so it fits my Raspian lite download. [{"version":5,"compressedMD5":"d63d00c3988a277f9ed9ac1862792745","uncompressedMD5":"b0711ca2316022ddea051ebdf2163d06","uncompressedSize":1304672023,"filename":"raspbian-lite-pibakery.img","compressedFilename":"raspbian-lite-pibakery.7z","uncompressedFilename":"raspbian-lite-pibakery-new.img","displayName":"Raspbian Lite","installed":true,"skipVersion":0}] But PiBakery keeps resetting the "installed" value to false.

My OS is Linux Mint 18.2 and Node.JS v8.4.0

dhaeb commented 6 years ago

I have the same problem using ubuntu 18.04 LTE and Node.JS v8.10.0.

gauntface commented 6 years ago

The file is read and written to on boot, the flow is:

  1. Read the file
  2. Try and find the images installed
  3. Update any values
  4. Write the value

I ended up adding logs to realise that the filename is what is checked first and if that errors, it stops looking. In other words - if you don't have the img set up with name raspbian-lite-pibakery.img, it's going to think it's not installed (even though you might have raspbian-lite-pibakery-new.img.