dirkhh / adsb-feeder-image

Easy to use turn-key SD card image for a number of popular single board computers to run a complete ADS-B feeder
https://adsb.im/home
GNU General Public License v3.0
99 stars 11 forks source link

Fix dietpi build wifi credential / config issue + various minor changes #187

Closed wiedehopf closed 2 months ago

wiedehopf commented 2 months ago

dietpi.txt and dietpi-wifi.txt are copied with cp -uv from the FAT partition to /boot on partition 2. If a user has dietpi.txt / dietpi-wifi.txt with older timestamp and the image builder has populated these files with ones with newer timestamp, the user configuration is never applied thus leading to image failure.

fix this by deleting the files in question.

note: /boot on partition 2 is usually completely empty for unmodified dietpi images, when checking i saw the image builder has put other files there like a kernel image. this hasn't caused any issues in my testing though.

wiedehopf commented 2 months ago

Output from the build log:

removed 'dietpi.txt'
removed 'dietpi-wifi.txt'
+ echo 'remaining files in /boot on partition 2:'
+ ls
remaining files in /boot on partition 2:
System.map-6.6.28+rpt-rpi-v8
cmdline.txt
config-6.6.28+rpt-rpi-v8
config.txt
dietpi
dietpi-LICENSE.txt
dietpi-README.md
firmware
initrd.img-6.6.28+rpt-rpi-v8
vmlinuz-6.6.28+rpt-rpi-v8
wiedehopf commented 2 months ago

This should be an image built with the changes of this PR (except for naming changes and rebase): https://github.com/dirkhh/adsb-feeder-image/releases/download/latest/adsb-im-raspberrypi64-dietpi-pi-2-3-4-g-869be52b.img.xz

Testing it now.