sysupgrade saving of configuration doesn't work
|Reported by:||Daniel Dickinson <crazycshore@…>||Owned by:||developers|
|Priority:||normal||Milestone:||Barrier Breaker 14.07|
sysupgrade save the configuration in sysupgrade.tgz but that file never gets restored on reboot after flashing a new firmware image, so configuration changes are always lost across firmware upgrades.
The attached patch fixes the offending failing component which is mtd -j. It was a simple C coding error in with sizeof(#define) was taken when sizeof returns the size of a type not an object. Since the #define was a byte string the size was 1 instead of 4 (the length of the JFFS2 DEADC0DE marker). I replace sizeof with another define for the length of the marker.