pibakery
pibakery copied to clipboard
images.json keeps resetting
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
I have the same problem using ubuntu 18.04 LTE and Node.JS v8.10.0.
The file is read and written to on boot, the flow is:
- Read the file
- Try and find the images installed
- Update any values
- 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.