base-files: exit if mtd write command fails during sysupgrade