pibakery icon indicating copy to clipboard operation
pibakery copied to clipboard

images.json keeps resetting

Open szymex73 opened this issue 7 years ago • 2 comments
trafficstars

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

szymex73 avatar Nov 24 '17 19:11 szymex73

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

dhaeb avatar May 23 '18 10:05 dhaeb

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.

gauntface avatar Jun 21 '18 05:06 gauntface