NeonGeckoCom / neon_debos

Debos build files for Neon OS
Apache License 2.0
1 stars 8 forks source link

[BUG] Invalid squashFS updates break installations #121

Closed NeonDaniel closed 3 months ago

NeonDaniel commented 4 months ago

Description

Currently, a downloaded text response or other invalid file will be treated as valid so long as there isn't an HTTP error response. This can lead to a broken installation when the invalid update replaces the current squashfs image.

Steps to Reproduce

Relevant Code

https://github.com/NeonGeckoCom/neon_debos/blob/dev/initramfs_build/overlay/scripts/check_update.sh

Other Notes

Consider some method to check file size or contents to validate it is probably squashFS

NeonDaniel commented 3 months ago

Closed by #126